add(nvim): skel syntax highlighting

This commit is contained in:
Léana 江 2023-10-20 14:31:02 +02:00 committed by Léana 江
parent 5eb005ac9a
commit 0a6620be4a
2 changed files with 85 additions and 0 deletions

View file

@ -63,6 +63,8 @@ api.nvim_create_autocmd("FileType", {
callback = function() vim.cmd("setlocal iskeyword+=$") end,
})
-- Using `sudoedit` would create gibberish extension names,
-- detection using extension would hence not work.
api.nvim_create_autocmd("BufEnter", {
pattern = { "*Caddyfile*" },
callback = function()
@ -72,3 +74,4 @@ api.nvim_create_autocmd("BufEnter", {
})
vim.filetype.add({ extension = { typ = "typst" } })
vim.filetype.add({ extension = { skel = "skel", sk = "skel" } })