diff options
Diffstat (limited to 'lua/plugins/treesitter.lua')
| -rw-r--r-- | lua/plugins/treesitter.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua new file mode 100644 index 0000000..e51ef9b --- /dev/null +++ b/lua/plugins/treesitter.lua @@ -0,0 +1,26 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + config = function() + require("nvim-treesitter.configs").setup({ + ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "go", "nix" }, + + auto_install = true, + + highlight = { + enable = true, + }, + + incremental_selection = { + enable = true, + keymaps = { + init_selection = "<Leader>ss", + node_incremental = "<Leader>si", + scope_incremental = "<Leader>sc", + node_decremental = "<Leader>sd", + }, + }, + }) + end, + }, +} |
