feat(nvim): toggle diagnostics with lsp lines

This commit is contained in:
Moritz Böhme 2023-09-07 09:08:18 +02:00
parent 12a5420ee9
commit 8f0a066e33

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)