feat: add custom filetypes
Added custom filetypes for more granular control over lsp support
This commit is contained in:
parent
969864d4e0
commit
cc99c75fe2
19
lua/core/filetypes.lua
Normal file
19
lua/core/filetypes.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
vim.filetype.add({
|
||||||
|
extension = {
|
||||||
|
install = "sh.install",
|
||||||
|
ebuild = "sh.ebuild",
|
||||||
|
eclass = "sh.eclass",
|
||||||
|
mdd = "sh.mdd",
|
||||||
|
},
|
||||||
|
filename = {
|
||||||
|
["build.sh"] = "sh.build",
|
||||||
|
["PKGBUILD"] = "sh.PKGBUILD",
|
||||||
|
["makepkg.conf"] = "sh.makepkg.conf",
|
||||||
|
},
|
||||||
|
pattern = {
|
||||||
|
[".*%.subpackage%.sh"] = "sh.subpackage",
|
||||||
|
[".*/etc/make%.conf"] = "sh.make.conf",
|
||||||
|
[".*/etc/portage/make%.conf"] = "sh.make.conf",
|
||||||
|
[".*/etc/portage/color%.map"] = "sh.color.map",
|
||||||
|
},
|
||||||
|
})
|
||||||
Loading…
Reference in New Issue
Block a user