diff --git a/neovim/lua/plugins/ide.lua b/neovim/lua/plugins/ide.lua index fbfaebf..d88fbe5 100644 --- a/neovim/lua/plugins/ide.lua +++ b/neovim/lua/plugins/ide.lua @@ -82,11 +82,8 @@ return { enable = true, select = { enable = true, - lookahead = true, - include_surrounding_whitespace = false, - -- https://github.com/nvim-treesitter/nvim-treesitter-textobjects#overriding-or-extending-textobjects keymaps = { ["af"] = "@function.outer", @@ -95,6 +92,26 @@ return { ["ic"] = "@comment.outer", }, }, + move = { + enable = true, + set_jumps = true, + goto_next_start = { + ["]m"] = "@function.outer", + ["]{"] = "@block.outer", + }, + goto_next_end = { + ["]M"] = "@function.outer", + ["]}"] = "@block.outer", + }, + goto_previous_start = { + ["[m"] = "@function.outer", + ["[{"] = "@block.outer", + }, + goto_previous_end = { + ["[M"] = "@function.outer", + ["[}"] = "@block.outer", + }, + }, }, ensure_installed = {