diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-10 15:28:07 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-10 15:28:07 +0100 |
commit | cd287ac79860326e5bb6d852db29aa37b5e00757 (patch) | |
tree | 9cfc2876946cc5e29453f4e0c66cbeb2c5469326 /.config/nvim | |
parent | 8382337d3efeda8cf01526054c647e5988c47141 (diff) |
nvim: Improve GSP support
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/after/plugin/treesitter.lua | 10 | ||||
-rw-r--r-- | .config/nvim/lua/mango/packer.lua | 1 |
2 files changed, 11 insertions, 0 deletions
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, + }, } diff --git a/.config/nvim/lua/mango/packer.lua b/.config/nvim/lua/mango/packer.lua index d6e79cc..ec09318 100644 --- a/.config/nvim/lua/mango/packer.lua +++ b/.config/nvim/lua/mango/packer.lua @@ -34,6 +34,7 @@ return require('packer').startup(function(use) -- Additional language support use 'Glench/Vim-Jinja2-Syntax' + use 'https://git.sr.ht/~mango/tree-sitter-gsp' use 'luckasRanarison/tree-sitter-hypr' -- LSP support and completions |