From 3b709033dff3574670c73d7bd9b1740f997bf4b1 Mon Sep 17 00:00:00 2001 From: mace Date: Sun, 3 Dec 2023 15:35:38 +0100 Subject: [PATCH] added keymap to jump to next method --- lua/custom/lspconfig.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/custom/lspconfig.lua b/lua/custom/lspconfig.lua index c42d32b..1dd0b07 100644 --- a/lua/custom/lspconfig.lua +++ b/lua/custom/lspconfig.lua @@ -69,6 +69,8 @@ local on_attach = function(_, bufnr) keymap.set("n", "ge", "Lspsaga show_line_diagnostics", opts) -- show diagnostics for line keymap.set("n", "d", "Lspsaga show_buf_diagnostics") keymap.set("n", "", "Lspsaga code_action", opts) + keymap.set("n", "gj", "]m", opts) -- jump to next method + keymap.set("n", "gk", "[m", opts) -- jump to previous method end -- used to enable autocompletion (assign to every lsp server config)