From cc99c75fe2199ac02b4788a7c3f345c69b2cd6eb Mon Sep 17 00:00:00 2001 From: Robert Morrison Date: Sun, 28 Sep 2025 04:32:13 +0100 Subject: [PATCH] feat: add custom filetypes Added custom filetypes for more granular control over lsp support --- lua/core/filetypes.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lua/core/filetypes.lua 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", + }, +})