diff options
| author | Crony Akatsuki <crony@cronyakatsuki.xyz> | 2025-10-20 17:01:16 +0200 |
|---|---|---|
| committer | Crony Akatsuki <crony@cronyakatsuki.xyz> | 2025-10-20 17:01:16 +0200 |
| commit | c2ff70b0799a91d93a3f3dc7ef3088d039df044b (patch) | |
| tree | fa092c140aa43aa14eb589fe93b9ada8fedd89ec /lua | |
| parent | 34ab6426356435cdb6498643ed063b55391332d3 (diff) | |
| download | nvim-c2ff70b0799a91d93a3f3dc7ef3088d039df044b.zip nvim-c2ff70b0799a91d93a3f3dc7ef3088d039df044b.tar.gz | |
feat: setup treesitter.
Diffstat (limited to '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, + }, +} |
