diff --git a/lua/configs/lsp.lua b/lua/configs/lsp.lua index d3059e4..4d0d2a7 100644 --- a/lua/configs/lsp.lua +++ b/lua/configs/lsp.lua @@ -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 diff --git a/lua/keybinds.lua b/lua/keybinds.lua index c3dabef..25bf3b8 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -57,3 +57,4 @@ map("n", "", "lua require('lspsaga.action').smart_scroll_with_saga(-1) map("n", "", "lua require('lspsaga.action').smart_scroll_with_saga(1)", opts) -- LSP (See also configs/lsp-installer.lua) +