diff options
| author | yuzu-eva <stevenhu@web.de> | 2022-12-23 22:01:25 +0100 |
|---|---|---|
| committer | yuzu-eva <stevenhu@web.de> | 2022-12-23 22:01:25 +0100 |
| commit | c9502c9c4b61c4cab7655c484ef7e577308343cf (patch) | |
| tree | 699e8a51e94a3b2a1ba42b83d0c0cfa1b7a142cf /.config/nvim/lua/user/plugins/treesitter.lua | |
| parent | ee92c6100fd18a80309bcaa86d1cbc20f8f2cd49 (diff) | |
readded nvim
Diffstat (limited to '.config/nvim/lua/user/plugins/treesitter.lua')
| -rw-r--r-- | .config/nvim/lua/user/plugins/treesitter.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.config/nvim/lua/user/plugins/treesitter.lua b/.config/nvim/lua/user/plugins/treesitter.lua new file mode 100644 index 0000000..32c74ee --- /dev/null +++ b/.config/nvim/lua/user/plugins/treesitter.lua @@ -0,0 +1,31 @@ +require('nvim-treesitter.configs').setup { + indent = { + enable = true, + disable = { 'html' }, + }, + highlight = { + enable = true, + disable = { 'NvimTree' }, + additional_vim_regex_highlighting = true, + }, + textobjects = { + select = { + enable = true, + lookahead = true, + keymaps = { + ['ia'] = '@parameter.inner', + -- ['aa'] = { + -- php = "" '@parameter.outer', + + -- python = "(function_definition) @function", + -- cpp = "(function_definition) @function", + -- c = "(function_definition) @function", + -- java = "(method_declaration) @function", + -- }, + }, + }, + }, + context_commentstring = { + enable = true, + }, +} |
