diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index ac20892..051eda2 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -63,8 +63,8 @@ cmp.setup({ local function config(_config) return vim.tbl_deep_extend("force", { on_attach = function() - nnoremap("gd", function() vim.lsp.buf.definition() end) - nnoremap("K", function() vim.lsp.buf.hover() end) + nnoremap("gd", function() vim.lsp.buf.definition() end, '[G]oto [D]efinition') + nnoremap("K", function() vim.lsp.buf.hover() end, 'Hover Documentation') nnoremap("vws", function() vim.lsp.buf.workspace_symbol() end) nnoremap("vd", function() vim.diagnostic.open_float() end) nnoremap("[d", function() vim.diagnostic.goto_next() end)