From 9449b23a11902f6e25fe11690f2086d8b3bca488 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 13 Dec 2023 13:00:37 +0100 Subject: [PATCH] fix: signature keybind --- lua/keybinds.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/keybinds.lua b/lua/keybinds.lua index 61a1e16..78d9d3a 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -83,9 +83,9 @@ function KEYBINDS:set_lsp_keys(opts) vim.keymap.set('n', 'i', vim.lsp.buf.implementation, opts) vim.keymap.set('n', 'r', vim.lsp.buf.references, opts) vim.keymap.set('n', 'h', vim.lsp.buf.hover, opts) + vim.keymap.set('n', 'f', vim.lsp.buf.signature_help, opts) vim.keymap.set('n', '', vim.lsp.buf.hover, opts) vim.keymap.set('n', '', vim.lsp.buf.hover, opts) - vim.keymap.set('n', '', vim.lsp.buf.signature_help, opts) -- vim.keymap.set('n', 'wa', vim.lsp.buf.add_workspace_folder, opts) -- vim.keymap.set('n', 'wr', vim.lsp.buf.remove_workspace_folder, opts) vim.keymap.set('n', '', vim.lsp.buf.rename, opts) @@ -134,6 +134,8 @@ function KEYBINDS:set_telescope_keys(opts) vim.keymap.set('n', '', wrap(telescope.current_buffer_fuzzy_find, {layout_strategy = 'vertical'}), opts) -- fallback for windows -- Symbols with telescope vim.keymap.set('n', '', telescope.lsp_document_symbols, opts) + vim.keymap.set('n', '/', telescope.lsp_document_symbols, opts) + vim.keymap.set('n', 's', wrap(telescope.lsp_dynamic_workspace_symbols, {layout_strategy = 'vertical'}), opts) vim.keymap.set('n', '', wrap(telescope.lsp_dynamic_workspace_symbols, {layout_strategy = 'vertical'}), opts) vim.keymap.set('n', '', wrap(telescope.lsp_dynamic_workspace_symbols, {layout_strategy = 'vertical'}), opts) -- Resule last