refactor(lsp): split lsp.lua into an lsp/ package

This commit is contained in:
2026-04-15 01:41:09 +02:00
parent 3f9170e46d
commit 79e6cbc401
5 changed files with 368 additions and 336 deletions
+35
View File
@@ -0,0 +1,35 @@
local M = {}
M.signs = {
text = {
[vim.diagnostic.severity.ERROR] = "E",
[vim.diagnostic.severity.WARN] = "W",
[vim.diagnostic.severity.INFO] = "I",
[vim.diagnostic.severity.HINT] = "H",
},
}
function M.setup()
vim.diagnostic.config({
underline = true,
signs = M.signs,
virtual_text = false,
float = {
show_header = false,
source = true,
border = "rounded",
focusable = true,
format = function(diagnostic)
return diagnostic.message
end,
width = 80,
},
update_in_insert = false,
severity_sort = true,
jump = {
wrap = false,
},
})
end
return M