fix: replace deprecated function

nixos
Moritz Böhme 2024-07-01 21:41:04 +02:00
parent 9bd0870f1d
commit 55325053ec
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 3 additions and 3 deletions

View File

@ -49,10 +49,10 @@ local on_attach_def = function(client, bufnr)
l = {
function()
lsp_lines.toggle()
if vim.diagnostic.is_disabled() then
vim.diagnostic.enable()
else
if vim.diagnostic.is_enabled() then
vim.diagnostic.disable()
else
vim.diagnostic.enable()
end
end,
"LSP lines",