init.lua/filetype.lua(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
if not vim.filetype then
return
end
vim.filetype.add {
extension = {
lock = "yaml",
gotmpl = "gotmpl",
vil = "json",
},
filename = {
[".eslintrc"] = "jsonc",
[".prettierrc"] = "jsonc",
[".stignore"] = "gitignore",
},
pattern = {
["%.env%.[%w_.-]+"] = "sh",
["*.Dockerfile.*"] = "dockerfile",
[".*/hypr/.+%.conf"] = "hyprlang",
[".*/kitty/.+%.conf"] = "kitty",
},
}
|