mirror of
https://github.com/ksyasuda/rice.git
synced 2024-10-28 09:04:10 -07:00
12 lines
285 B
Lua
12 lines
285 B
Lua
|
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)
|