nvim: add treesitter textobjcets

This commit is contained in:
2023-07-08 15:20:42 +03:00
parent d8538063ef
commit e2219da268
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,11 @@
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",
},
},
})