feat(neovim): toggle line diagnostics with <leader>D

This commit is contained in:
Michael Mandl 2022-07-25 08:48:28 +02:00
parent c89fe3b30e
commit adaf694330
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

View file

@ -18,6 +18,7 @@ local on_attach = function(client, bufnr)
nnoremap("<leader>ca", vim.lsp.buf.code_action)
nnoremap("<leader>f", vim.lsp.buf.formatting)
nnoremap("<leader>d", telescope.diagnostics)
nnoremap("<leader>D", require("lsp_lines").toggle)
nnoremap("<C-p>", vim.diagnostic.goto_prev)
nnoremap("<C-n>", vim.diagnostic.goto_next)