mirror of
https://github.com/ksyasuda/rice.git
synced 2026-11-01 04:35:14 -08:00
add toggle lsp diagnostic
This commit is contained in:
1 parent
164aa942e0
commit
c70f3ec15a
3 files changed
+20
-5
No files matched your search
@@ -0,0 +1,11 @@
|
||||
local diagnostics_active = true
|
||||
local toggle_diagnostics = function()
|
||||
diagnostics_active = not diagnostics_active
|
||||
if diagnostics_active then
|
||||
vim.diagnostic.show()
|
||||
else
|
||||
vim.diagnostic.hide()
|
||||
end
|
||||
end
|
||||
|
||||
vim.keymap.set('n', '<leader>td', toggle_diagnostics)
|
||||
Reference in new issue
Block a user