summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/getchoo
diff options
context:
space:
mode:
authorseth <[email protected]>2022-08-21 19:32:45 -0400
committerseth <[email protected]>2022-08-21 19:32:45 -0400
commit9fe4b9e8ba1ccb1b197f202ada0b961a73f2830f (patch)
treeda3bfa1bfa804a75d07601b7c7837c30c2cd475a /.config/nvim/lua/getchoo
parentd99f98423439020e7bd5fdae0493aa5da9d9bf14 (diff)
stop bashls from spamming in PKGBUILDs
Diffstat (limited to '.config/nvim/lua/getchoo')
-rw-r--r--.config/nvim/lua/getchoo/ftdetect.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/nvim/lua/getchoo/ftdetect.lua b/.config/nvim/lua/getchoo/ftdetect.lua
new file mode 100644
index 0000000..e95e87a
--- /dev/null
+++ b/.config/nvim/lua/getchoo/ftdetect.lua
@@ -0,0 +1,14 @@
+--
+-- load custom file types
+--
+
+vim.g.do_filetype_lua = 1 -- enable filetype.lua
+vim.g.did_load_filetypes = 0
+
+local filetypes = {
+ filename = {
+ PKGBUILD = "text",
+ },
+}
+
+vim.filetype.add(filetypes)