Disable virtual text diagnostics

This commit is contained in:
Michael Peters 2022-02-28 23:31:16 -06:00
parent 0d787fd341
commit 01f25d87a8
2 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,10 @@ function M.config()
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
border = "rounded",
})
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
virtual_text = false
})
end
return M

View File

@ -57,3 +57,4 @@ map("n", "<C-u>", "<cmd>lua require('lspsaga.action').smart_scroll_with_saga(-1)
map("n", "<C-d>", "<cmd>lua require('lspsaga.action').smart_scroll_with_saga(1)<cr>", opts)
-- LSP (See also configs/lsp-installer.lua)