comments on lsp keymaps
This commit is contained in:
parent
c7c30bddcf
commit
b797e96ef4
@ -63,8 +63,8 @@ cmp.setup({
|
|||||||
local function config(_config)
|
local function config(_config)
|
||||||
return vim.tbl_deep_extend("force", {
|
return vim.tbl_deep_extend("force", {
|
||||||
on_attach = function()
|
on_attach = function()
|
||||||
nnoremap("gd", function() vim.lsp.buf.definition() end)
|
nnoremap("gd", function() vim.lsp.buf.definition() end, '[G]oto [D]efinition')
|
||||||
nnoremap("K", function() vim.lsp.buf.hover() end)
|
nnoremap("K", function() vim.lsp.buf.hover() end, 'Hover Documentation')
|
||||||
nnoremap("<leader>vws", function() vim.lsp.buf.workspace_symbol() end)
|
nnoremap("<leader>vws", function() vim.lsp.buf.workspace_symbol() end)
|
||||||
nnoremap("<leader>vd", function() vim.diagnostic.open_float() end)
|
nnoremap("<leader>vd", function() vim.diagnostic.open_float() end)
|
||||||
nnoremap("[d", function() vim.diagnostic.goto_next() end)
|
nnoremap("[d", function() vim.diagnostic.goto_next() end)
|
||||||
|
Loading…
Reference in New Issue
Block a user