Skip to content

Commit 186bc8e

Browse files
committed
feat: add pretty diagnostic messages
1 parent 4bd4f5a commit 186bc8e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

nvim/lua/plugins.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,16 @@ for _, lsp in ipairs(servers) do
162162
}
163163
end
164164

165+
-- Pretty diagnostic messages
166+
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
167+
vim.lsp.diagnostic.on_publish_diagnostics, {
168+
signs = false,
169+
virtual_text = {
170+
prefix = "",
171+
},
172+
}
173+
)
174+
165175
-- luasnip setup
166176
local luasnip = require('luasnip')
167177

0 commit comments

Comments
 (0)