feat(nvim): toggle diagnostics with lsp lines
This commit is contained in:
parent
12a5420ee9
commit
8f0a066e33
1 changed files with 11 additions and 1 deletions
|
@ -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 a new issue