aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/treesitter.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/treesitter.vim')
-rw-r--r--plugin/treesitter.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugin/treesitter.vim b/plugin/treesitter.vim
index 9bf42b2..b6bbd03 100644
--- a/plugin/treesitter.vim
+++ b/plugin/treesitter.vim
@@ -8,6 +8,29 @@ require "nvim-treesitter.configs".setup {
indent = {
enable = true,
},
+ refactor = {
+ highlight_definitions = { enable = true },
+ smart_rename = {
+ enable = true,
+ keymaps = {
+ smart_rename = "grr",
+ },
+ },
+ },
+ textobjects = {
+ select = {
+ enable = true,
+ lookahead = true,
+ keymaps = {
+ ["af"] = "@function.outer",
+ ["if"] = "@function.inner",
+ ["ac"] = "@conditional.outer",
+ ["ic"] = "@conditional.inner",
+ ["al"] = "@loop.outer",
+ ["il"] = "@loop.inner",
+ }
+ }
+ },
playground = {
enable = true,
disable = {},