diff --git a/lua/plugins/spec/treesitter.lua b/lua/plugins/spec/treesitter.lua index 5344a12..9971c45 100644 --- a/lua/plugins/spec/treesitter.lua +++ b/lua/plugins/spec/treesitter.lua @@ -1,3 +1,5 @@ +---@module "lazy.nvim" +---@type LazySpec return { { "nvim-treesitter/nvim-treesitter", @@ -12,4 +14,24 @@ return { "nvim-treesitter/nvim-treesitter", }, }, + { + "MeanderingProgrammer/treesitter-modules.nvim", + dependencies = { "nvim-treesitter/nvim-treesitter" }, + + opts = { + incremental_selection = { + enable = true, + keymaps = { + init_selection = "", + scope_incremental = "", + node_incremental = "", + node_decremental = "", + } + } + }, + cond = function () + return (vim.fn.has("nvim-0.12") == 0) + end + } } +