From b797e96ef4a6c8581adc8b37864b3d88377e6847 Mon Sep 17 00:00:00 2001 From: serxoz Date: Mon, 26 Dec 2022 16:32:50 +0100 Subject: [PATCH] comments on lsp keymaps --- after/plugin/lsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)