hover documentation for function in insert mode

This commit is contained in:
Baipyrus 2024-08-01 00:23:53 +02:00
parent 5ad7502e88
commit 9fb7d5de4b

View File

@ -107,6 +107,8 @@ return {
-- Opens a popup that displays documentation about the word under your cursor
-- See `:help K` for why this keymap.
map('K', vim.lsp.buf.hover, 'Hover Documentation')
-- Similar as above, shows hover documentation for current function
vim.keymap.set('i', '<C-k>', vim.lsp.buf.signature_help, { buffer = event.buf, desc = 'LSP: ' .. 'Hover Signature Information' })
-- WARN: This is not Goto Definition, this is Goto Declaration.
-- For example, in C this would take you to the header.