disable diagnostic inline text by default to reduce distraction
This commit is contained in:
@ -19,6 +19,18 @@ return {
|
||||
require("user.plugins.lsp.diagnostics_config").setup()
|
||||
-- require("user.lsp.none_ls")
|
||||
|
||||
local which_key = require("which-key")
|
||||
which_key.add({
|
||||
{
|
||||
"<leader>ch",
|
||||
function()
|
||||
local current = vim.diagnostic.config().virtual_text
|
||||
vim.diagnostic.config({ virtual_text = not current })
|
||||
end,
|
||||
desc = "toggle inline diagnostics"
|
||||
},
|
||||
})
|
||||
|
||||
vim.cmd([[ command! Format execute 'lua vim.lsp.buf.format{async=true}' ]])
|
||||
end,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user