comments on lsp keymaps

This commit is contained in:
serxoz 2022-12-26 16:32:50 +01:00
parent c7c30bddcf
commit b797e96ef4

View File

@ -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("<leader>vws", function() vim.lsp.buf.workspace_symbol() end)
nnoremap("<leader>vd", function() vim.diagnostic.open_float() end)
nnoremap("[d", function() vim.diagnostic.goto_next() end)