fix: replace deprecated function

This commit is contained in:
Moritz Böhme 2024-07-01 21:41:04 +02:00
parent 9bd0870f1d
commit 55325053ec
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

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",