feat(nvim): toggle diagnostics with lsp lines

nixos
Moritz Böhme 2023-09-07 09:08:18 +02:00
parent 12a5420ee9
commit 8f0a066e33
1 changed files with 11 additions and 1 deletions

View File

@ -52,7 +52,17 @@ local on_attach_def = function(client, bufnr)
},
},
t = {
l = { lsp_lines.toggle, "LSP lines" },
l = {
function()
lsp_lines.toggle()
if vim.diagnostic.is_disabled() then
vim.diagnostic.enable()
else
vim.diagnostic.disable()
end
end,
"LSP lines",
},
i = {
function()
vim.lsp.inlay_hint(bufnr, nil)