diff options
Diffstat (limited to 'arch/bigvim/.config/bigvim/lua/plugins/treesitter.lua')
| -rw-r--r-- | arch/bigvim/.config/bigvim/lua/plugins/treesitter.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/bigvim/.config/bigvim/lua/plugins/treesitter.lua b/arch/bigvim/.config/bigvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..348eaba --- /dev/null +++ b/arch/bigvim/.config/bigvim/lua/plugins/treesitter.lua @@ -0,0 +1,31 @@ +return { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + event = { "BufReadPre", "BufNewFile" }, + opts = { + ensure_installed = { + "c", + "cpp", + "python", + "lua", + "haskell", + "vim", + "vimdoc", + "query", + "bash", + "markdown", + "markdown_inline", + "json", + "toml", + "yaml", + "odin", + }, + highlight = { enable = true }, + indent = { enable = true }, + auto_install = false, + }, + config = function(_, opts) + -- new API, configs module is gone + require("nvim-treesitter").setup(opts) + end, +} |