@@ -102,32 +102,40 @@ local codes = {
102
102
},
103
103
}
104
104
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
+ -- }
119
119
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
123
123
124
124
local config = {
125
- signs = true ,
125
+ -- signs = true,
126
126
underline = true ,
127
127
severity_sort = true ,
128
128
update_in_insert = false ,
129
129
virtual_text = false ,
130
130
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
+ },
131
139
float = {
132
140
focusable = false ,
133
141
scope = " cursor" ,
0 commit comments