Skip to content

Commit fa23f55

Browse files
1 parent 0d9aaf9 commit fa23f55

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

lua/modules/lsp/settings/lsp_config.lua

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -102,32 +102,40 @@ local codes = {
102102
},
103103
}
104104

105-
local signs = {
106-
--[[ { name = "DiagnosticSignError", text = "" },
107-
{ name = "DiagnosticSignWarn", text = "" },
108-
{ name = "DiagnosticSignInfo", text = "" },
109-
{ name = "DiagnosticSignHint", text = "" }, ]]
110-
--[[ { name = "DiagnosticSignError", text = "" },
111-
{ name = "DiagnosticSignWarn", text = "" },
112-
{ name = "DiagnosticSignInfo", text = "" },
113-
{ name = "DiagnosticSignHint", text = "" }, ]]
114-
{ name = "DiagnosticSignError", text = "" },
115-
{ name = "DiagnosticSignWarn", text = "" },
116-
{ name = "DiagnosticSignHint", text = "" },
117-
{ name = "DiagnosticSignInfo", text = "" },
118-
}
105+
-- local signs = {
106+
-- --[[ { name = "DiagnosticSignError", text = "" },
107+
-- { name = "DiagnosticSignWarn", text = "" },
108+
-- { name = "DiagnosticSignInfo", text = "" },
109+
-- { name = "DiagnosticSignHint", text = "" }, ]]
110+
-- --[[ { name = "DiagnosticSignError", text = "" },
111+
-- { name = "DiagnosticSignWarn", text = "" },
112+
-- { name = "DiagnosticSignInfo", text = "" },
113+
-- { name = "DiagnosticSignHint", text = "" }, ]]
114+
-- { name = "DiagnosticSignError", text = "" },
115+
-- { name = "DiagnosticSignWarn", text = "" },
116+
-- { name = "DiagnosticSignHint", text = "" },
117+
-- { name = "DiagnosticSignInfo", text = "" },
118+
-- }
119119

120-
for _, sign in ipairs(signs) do
121-
vim.fn.sign_define(sign.name, { texthl = sign.name, text = sign.text, numhl = "" })
122-
end
120+
-- for _, sign in ipairs(signs) do
121+
-- vim.fn.sign_define(sign.name, { texthl = sign.name, text = sign.text, numhl = "" })
122+
-- end
123123

124124
local config = {
125-
signs = true,
125+
-- signs = true,
126126
underline = true,
127127
severity_sort = true,
128128
update_in_insert = false,
129129
virtual_text = false,
130130
virtual_lines = { only_current_line = true },
131+
signs = {
132+
text = {
133+
[vim.diagnostic.severity.ERROR] = "",
134+
[vim.diagnostic.severity.WARN] = "",
135+
[vim.diagnostic.severity.HINT] = "",
136+
[vim.diagnostic.severity.INFO] = "",
137+
},
138+
},
131139
float = {
132140
focusable = false,
133141
scope = "cursor",

0 commit comments

Comments
 (0)