diff --git a/lua/lazyvim/plugins/treesitter.lua b/lua/lazyvim/plugins/treesitter.lua index b753142b..8bae88fe 100644 --- a/lua/lazyvim/plugins/treesitter.lua +++ b/lua/lazyvim/plugins/treesitter.lua @@ -3,9 +3,12 @@ return { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", event = "BufReadPost", + keys = { + { "", desc = "Increment selection" }, + { "", desc = "Schrink selection" }, + }, ---@type TSConfig opts = { - sync_install = false, highlight = { enable = true }, indent = { enable = true }, context_commentstring = { enable = true, enable_autocmd = false }, @@ -26,6 +29,15 @@ return { "vim", "yaml", }, + incremental_selection = { + enable = true, + keymaps = { + init_selection = "", + node_incremental = "", + scope_incremental = false, + node_decremental = "", + }, + }, }, ---@param opts TSConfig config = function(plugin, opts)