File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
lua/modules/configs/completion Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,17 @@ return function()
1010 }
1111
1212 local function set_sidebar_icons ()
13- -- Set icons for sidebar.
14- local diagnostic_icons = {
15- Error = icons . diagnostics . Error_alt ,
16- Warn = icons . diagnostics . Warning_alt ,
17- Info = icons .diagnostics .Information_alt ,
18- Hint = icons .diagnostics .Hint_alt ,
19- }
20- for type , icon in pairs ( diagnostic_icons ) do
21- local hl = " DiagnosticSign " .. type
22- vim . fn . sign_define ( hl , { text = icon , texthl = hl })
23- end
13+ -- Set icons for sidebar
14+ vim . diagnostic . config ( {
15+ signs = {
16+ text = {
17+ [ vim . diagnostic . severity . ERROR ] = icons .diagnostics .Error_alt ,
18+ [ vim . diagnostic . severity . WARN ] = icons .diagnostics .Warning_alt ,
19+ [ vim . diagnostic . severity . INFO ] = icons . diagnostics . Information_alt ,
20+ [ vim . diagnostic . severity . HINT ] = icons . diagnostics . Hint_alt ,
21+ },
22+ },
23+ })
2424 end
2525
2626 set_sidebar_icons ()
You can’t perform that action at this time.
0 commit comments