From 26cf67e67cdab4526cfa14b112d8e1321b820c01 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Tue, 5 Mar 2024 13:09:29 +0530 Subject: [PATCH] add binds for signature help and hover --- lua/core.lua | 4 ++++ lua/custom_opts.lua | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lua/core.lua b/lua/core.lua index e6a56fa..5577217 100644 --- a/lua/core.lua +++ b/lua/core.lua @@ -11,6 +11,10 @@ local function set_keymap() map("n", keys.jump_up_window, "k", option) map("n", keys.jump_right_window, "l", option) + -- View documentation and signature details + map("n", "K", vim.lsp.buf.hover, option) + map({ "n", "i" }, "", vim.lsp.buf.signature_help, option) + vim.cmd [[ " press esc to cancel search highlight nnoremap :nohlsearch:echo diff --git a/lua/custom_opts.lua b/lua/custom_opts.lua index 6cd851d..ad7dda7 100644 --- a/lua/custom_opts.lua +++ b/lua/custom_opts.lua @@ -10,10 +10,10 @@ local function strsplit(inputstr, sep) end return { - file_explorer_title = "🥷 File Explorer", - tab_style = "thin", -- options: thin, thick, slope, slant + file_explorer_title = "", + tab_style = "thick", -- options: thin, thick, slope, slant terminal_size = 0.7, -- control the float terminal only - window_transparency = 0, + window_transparency = 1, auto_open_outline = false, -- options: true, false cmdline_view = "cmdline", -- options: cmdline, cmdline_popup close_message_notify = false,