lsp changes, mini.ai

This commit is contained in:
iofq 2023-08-06 09:46:19 -05:00
parent e260bac77b
commit 8b0a7ef1a6
4 changed files with 37 additions and 38 deletions

View file

@ -13,7 +13,8 @@ require("nvim-treesitter.configs").setup {
keymaps = {
["af"] = "@function.outer",
["if"] = "@function.inner",
["aa"] = "@call.inner",
["aa"] = "@statement.outer",
["ia"] = "@parameter.inner",
},
},
move = {
@ -21,19 +22,26 @@ require("nvim-treesitter.configs").setup {
set_jumps = true, -- whether to set jumps in the jumplist
goto_next_start = {
[']]'] = '@function.outer',
[']m'] = '@class.outer',
[']a'] = '@parameter.inner',
},
goto_previous_start = {
['[['] = '@function.outer',
['[m'] = '@class.outer',
['[a'] = '@parameter.inner',
},
},
},
swap = {
enable = true,
swap_next = {
["p]"] = "@parameter.inner",
},
swap_previous = {
["p["] = "@parameter.inner",
},
}, },
incremental_selection = {
enable = true,
keymaps = {
init_selection = '<CR>',
scope_incremental = '<CR>',
node_incremental = '<TAB>',
node_decremental = '<S-TAB>',
},