From 16d566da938b049dda8998beec43e3cd85c4ed47 Mon Sep 17 00:00:00 2001 From: cafebabe <77344710+yuzu-eva@users.noreply.github.com> Date: Sat, 21 May 2022 23:33:01 +0200 Subject: Add nvim configuration --- .config/nvim/lua/user/plugins/treesitter.lua | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .config/nvim/lua/user/plugins/treesitter.lua (limited to '.config/nvim/lua/user/plugins/treesitter.lua') diff --git a/.config/nvim/lua/user/plugins/treesitter.lua b/.config/nvim/lua/user/plugins/treesitter.lua new file mode 100644 index 0000000..44cf008 --- /dev/null +++ b/.config/nvim/lua/user/plugins/treesitter.lua @@ -0,0 +1,30 @@ +require('nvim-treesitter.configs').setup { + indent = { + enable = true, + }, + 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, + }, +} -- cgit v1.2.3