diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-06-10 23:07:28 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-06-10 23:07:28 +0200 |
commit | 511efe89ed084bc922ae142d32e08427859198f4 (patch) | |
tree | fef9294b6056b6cf972ea5e689f70da8184fafae /.config/nvim/after/plugin/treesitter.lua | |
parent | 64e2e90abdca04743558e3baf42a6b714b440bd0 (diff) |
nvim: Completely rewrite my configuration
Diffstat (limited to '.config/nvim/after/plugin/treesitter.lua')
-rw-r--r-- | .config/nvim/after/plugin/treesitter.lua | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua deleted file mode 100644 index e441371..0000000 --- a/.config/nvim/after/plugin/treesitter.lua +++ /dev/null @@ -1,89 +0,0 @@ -local config = require('nvim-treesitter.parsers').get_parser_configs() -config.gsp = { - install_info = { - url = 'https://git.sr.ht/~mango/tree-sitter-gsp', - files = {'src/parser.c'}, - }, - filetype = 'gsp', -} - -require('nvim-treesitter.configs').setup { - ensure_installed = { - 'c', - 'gsp', - 'vim', - 'vimdoc', - }, - - sync_install = false, - auto_install = true, - - highlight = { - enable = true, - additional_vim_regex_highlighting = false, - }, - - incremental_selection = { - enable = true, - keymaps = { - init_selection = '<C-Space>', - node_incremental = '<C-Space>', - node_decremental = '<C-s>', - } - }, - - textobjects = { - select = { - enable = true, - lookahead = true, - keymaps = { - ['ab'] = '@block.outer', - ['ib'] = '@block.inner', - ['ac'] = '@comment.outer', - ['ic'] = '@comment.inner', - ['af'] = '@function.outer', - ['if'] = '@function.inner', - ['an'] = '@node.outer', - ['in'] = '@node.inner', - ['at'] = '@text.outer', - ['it'] = '@text.outer', - }, - }, - move = { - enable = true, - set_jumps = true, - goto_next_start = { - [']c'] = '@comment.outer', - [']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, - }, -} |