diff options
| author | seth <[email protected]> | 2022-08-21 19:32:45 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2022-08-21 19:32:45 -0400 |
| commit | 9fe4b9e8ba1ccb1b197f202ada0b961a73f2830f (patch) | |
| tree | da3bfa1bfa804a75d07601b7c7837c30c2cd475a | |
| parent | d99f98423439020e7bd5fdae0493aa5da9d9bf14 (diff) | |
stop bashls from spamming in PKGBUILDs
| -rw-r--r-- | .config/nvim/init.lua | 1 | ||||
| -rw-r--r-- | .config/nvim/lua/getchoo/ftdetect.lua | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 3de2473..a323ca8 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -5,6 +5,7 @@ local cmd = vim.cmd local opt = vim.opt +require("getchoo.ftdetect") require("getchoo.plugins") require("getchoo.lsp") 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) |
