This commit is contained in:
Alexander Navarro 2023-04-07 20:27:11 -04:00
parent 65b6905417
commit 4197317adf
5 changed files with 156 additions and 124 deletions

View file

@ -36,4 +36,26 @@ return {
})
end,
},
{
"chrisgrieser/nvim-various-textobjs",
lazy = false,
opts = { useDefaultKeymaps = true },
},
{
"RRethy/nvim-treesitter-textsubjects",
lazy = false,
config = function()
require("nvim-treesitter.configs").setup({
textsubjects = {
enable = true,
prev_selection = ",", -- (Optional) keymap to select the previous selection
keymaps = {
["."] = "textsubjects-smart",
[";"] = "textsubjects-container-outer",
["i;"] = "textsubjects-container-inner",
},
},
})
end,
},
}