feat: setup treesitter.
This commit is contained in:
parent
34ab642635
commit
c2ff70b079
2 changed files with 28 additions and 1 deletions
26
lua/plugins/treesitter.lua
Normal file
26
lua/plugins/treesitter.lua
Normal file
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue