From cd287ac79860326e5bb6d852db29aa37b5e00757 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 10 Nov 2023 15:28:07 +0100 Subject: nvim: Improve GSP support --- .config/nvim/after/plugin/treesitter.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.config/nvim/after/plugin/treesitter.lua') diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua index 1ffb294..e069683 100644 --- a/.config/nvim/after/plugin/treesitter.lua +++ b/.config/nvim/after/plugin/treesitter.lua @@ -61,6 +61,8 @@ require('nvim-treesitter.configs').setup { ['if'] = '@function.inner', ['an'] = '@node.outer', ['in'] = '@node.inner', + ['at'] = '@text.outer', + ['it'] = '@text.outer', }, }, move = { @@ -71,25 +73,33 @@ require('nvim-treesitter.configs').setup { [']f'] = '@function.outer', [']b'] = '@block.outer', [']n'] = '@node.outer', + [']t'] = '@text.outer', }, goto_next_end = { [']C'] = '@comment.outer', [']F'] = '@function.outer', [']B'] = '@block.outer', [']N'] = '@node.outer', + [']T'] = '@text.outer', }, goto_previous_start = { ['[c'] = '@comment.outer', ['[f'] = '@function.outer', ['[b'] = '@block.outer', ['[n'] = '@node.outer', + ['[t'] = '@text.outer', }, goto_previous_end = { ['[C'] = '@comment.outer', ['[F'] = '@function.outer', ['[B'] = '@block.outer', ['[N'] = '@node.outer', + ['[T'] = '@text.outer', }, }, }, + + indent = { + enable = true, + }, } -- cgit v1.2.3