Files
yadm/.config/nvim/lua/plugins/treesitter.lua
T
2026-05-21 01:37:21 +02:00

62 lines
1.4 KiB
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
branch = "master",
config = {
sync_install = true,
modules = {
},
highlight = {
enable = true,
disable = {
"html"
},
additional_vim_regex_highlighting = true,
},
indent = { enable = true, },
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<space>,",
scope_incremental = "<space><space>",
},
},
refactor = {
highlight_definitions = { enable = true },
highlight_current_scope = { enable = true },
smart_rename = {
enable = true,
keymaps = {
smart_rename = "<space>r",
},
},
navigation = {
enable = true,
keymaps = {
goto_definition = "<space>d",
list_definitions = "<space>l",
list_definitions_toc = "<space>L",
goto_next_usage = "<space>]",
goto_previous_usage = "<space>[",
},
},
},
}
},
{
'nvim-treesitter/nvim-treesitter-context',
opts = {
max_lines = 4,
multiline_threshold = 2,
},
},
{
'mizlan/iswap.nvim',
enabled = false,
}
}