nvim: projet syntax support

This commit is contained in:
Léana 江 2024-04-22 01:12:10 +02:00 committed by Léana 江
parent fa6e8926f1
commit 630be8a2ab
2 changed files with 70 additions and 0 deletions

View file

@ -31,6 +31,15 @@ autocmd("FileType", {
callback = function() vim.opt_local["commentstring"] = "# %s" end,
})
-- "Projet" language taught at ISTIC
autocmd("BufEnter", {
pattern = "*.pro",
callback = function()
vim.opt_local["commentstring"] = "{ %s }"
vim.opt_local["filetype"] = "projet"
end,
})
autocmd("FileType", {
pattern = "skel",
callback = function()