feat: add custom filetypes

Added custom filetypes for more granular control over lsp support
This commit is contained in:
Robert Morrison 2025-09-28 04:32:13 +01:00
parent 969864d4e0
commit cc99c75fe2

19
lua/core/filetypes.lua Normal file
View 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",
},
})