diff --git a/lua/core/filetypes.lua b/lua/core/filetypes.lua new file mode 100644 index 0000000..de92d9e --- /dev/null +++ b/lua/core/filetypes.lua @@ -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", + }, +})