feat(nvim): toggle diagnostics with lsp lines
parent
12a5420ee9
commit
8f0a066e33
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue