add binds for signature help and hover

This commit is contained in:
Erica Marigold 2024-03-05 13:09:29 +05:30
parent 56ab8fbb76
commit 26cf67e67c
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1
2 changed files with 7 additions and 3 deletions

View file

@ -11,6 +11,10 @@ local function set_keymap()
map("n", keys.jump_up_window, "<C-W>k", option)
map("n", keys.jump_right_window, "<C-W>l", option)
-- View documentation and signature details
map("n", "K", vim.lsp.buf.hover, option)
map({ "n", "i" }, "<C-k>", vim.lsp.buf.signature_help, option)
vim.cmd [[
" press esc to cancel search highlight
nnoremap <silent> <Esc> :nohlsearch<CR>:echo<CR>

View file

@ -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,