fix: replace deprecated function
This commit is contained in:
parent
9bd0870f1d
commit
55325053ec
1 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue