From 358a789baab22c30ca062eb1d8b6e1dc620f25f5 Mon Sep 17 00:00:00 2001 From: Anup Sebastian <56888132+anupjsebastian@users.noreply.github.com> Date: Thu, 30 Oct 2025 08:29:43 -0500 Subject: [PATCH] feat: hover keymap --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index e7b99b6c..8f6e8a5d 100644 --- a/init.lua +++ b/init.lua @@ -582,6 +582,10 @@ require('lazy').setup({ -- Most Language Servers support renaming across files, etc. map('grn', vim.lsp.buf.rename, '[R]e[n]ame') + -- Show hover information (errors, documentation, type info) + -- This is like hovering in VS Code - shows error messages, docs, etc. + map('K', vim.lsp.buf.hover, 'Hover Documentation') + -- Execute a code action, usually your cursor needs to be on top of an error -- or a suggestion from your LSP for this to activate. map('gra', vim.lsp.buf.code_action, '[G]oto Code [A]ction', { 'n', 'x' }) @@ -879,7 +883,7 @@ require('lazy').setup({ -- : Toggle signature help -- -- See :h blink-cmp-config-keymap for defining your own keymap - preset = 'default', + preset = 'enter', -- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see: -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps