add autocmd for .repl files

This commit is contained in:
mjhika 2023-09-07 16:30:20 -04:00
parent 9e892bc2bc
commit 0e9f80d9fc
1 changed files with 9 additions and 0 deletions

View File

@ -27,6 +27,15 @@ return {
callback = function() vim.bo.commentstring = ";; %s" end,
desc = "Lisp style line comment",
})
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
group = vim.api.nvim_create_augroup("repl_is_clojrue_file", { clear = true }),
pattern = { "*.repl" },
callback = function()
vim.cmd([[ set ft=clojure ]])
end,
desc = "Associate *.repl file as a clojure filetype."
})
end,
},
}