From 4b6bf40b4c643cb72e22f5f68f31527b60ee7a4c Mon Sep 17 00:00:00 2001 From: Dennis Chan Date: Wed, 23 Apr 2025 18:03:59 +0800 Subject: [PATCH] add hover keymap --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index f82b385b..e1c51b0c 100644 --- a/init.lua +++ b/init.lua @@ -556,6 +556,8 @@ require('lazy').setup({ -- the definition of its *type*, not where it was *defined*. map('grt', require('telescope.builtin').lsp_type_definitions, '[G]oto [T]ype Definition') + map('K', vim.lsp.buf.hover, 'Hover Documentation') + -- This function resolves a difference between neovim nightly (version 0.11) and stable (version 0.10) ---@param client vim.lsp.Client ---@param method vim.lsp.protocol.Method