replaced deprecated diagnostic calls
This commit is contained in:
parent
6a8c84250f
commit
b396169fca
@ -35,8 +35,8 @@ local on_attach = function(client, bufnr)
|
|||||||
|
|
||||||
-- Mappings.
|
-- Mappings.
|
||||||
local opts = { noremap = true, silent = false, buffer = bufnr }
|
local opts = { noremap = true, silent = false, buffer = bufnr }
|
||||||
vim.keymap.set('n', '<space>,', vim.lsp.diagnostic.goto_prev, opts)
|
vim.keymap.set('n', '<space>,', vim.diagnostic.goto_prev, opts)
|
||||||
vim.keymap.set('n', '<space>;', vim.lsp.diagnostic.goto_next, opts)
|
vim.keymap.set('n', '<space>;', vim.diagnostic.goto_next, opts)
|
||||||
vim.keymap.set('n', '<space>a', vim.lsp.buf.code_action, opts)
|
vim.keymap.set('n', '<space>a', vim.lsp.buf.code_action, opts)
|
||||||
vim.keymap.set('n', '<space>d', vim.lsp.buf.definition, opts)
|
vim.keymap.set('n', '<space>d', vim.lsp.buf.definition, opts)
|
||||||
vim.keymap.set('n', '<space>e', vim.lsp.buf.declaration, opts)
|
vim.keymap.set('n', '<space>e', vim.lsp.buf.declaration, opts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user