File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ local _config = {}
2
2
local default_config = {
3
3
kind_labels = {},
4
4
current_function = true ,
5
+ indicator_separator = ' ' ,
5
6
indicator_errors = ' ' ,
6
7
indicator_warnings = ' ' ,
7
8
indicator_info = ' 🛈' ,
Original file line number Diff line number Diff line change @@ -21,25 +21,25 @@ local function statusline_lsp()
21
21
local some_diagnostics = false
22
22
local status_parts = {}
23
23
if buf_diagnostics .errors and buf_diagnostics .errors > 0 then
24
- table.insert (status_parts , config .indicator_errors .. ' ' .. buf_diagnostics .errors )
24
+ table.insert (status_parts , config .indicator_errors .. config . indicator_separator .. buf_diagnostics .errors )
25
25
only_hint = false
26
26
some_diagnostics = true
27
27
end
28
28
29
29
if buf_diagnostics .warnings and buf_diagnostics .warnings > 0 then
30
- table.insert (status_parts , config .indicator_warnings .. ' ' .. buf_diagnostics .warnings )
30
+ table.insert (status_parts , config .indicator_warnings .. config . indicator_separator .. buf_diagnostics .warnings )
31
31
only_hint = false
32
32
some_diagnostics = true
33
33
end
34
34
35
35
if buf_diagnostics .info and buf_diagnostics .info > 0 then
36
- table.insert (status_parts , config .indicator_info .. ' ' .. buf_diagnostics .info )
36
+ table.insert (status_parts , config .indicator_info .. config . indicator_separator .. buf_diagnostics .info )
37
37
only_hint = false
38
38
some_diagnostics = true
39
39
end
40
40
41
41
if buf_diagnostics .hints and buf_diagnostics .hints > 0 then
42
- table.insert (status_parts , config .indicator_hint .. ' ' .. buf_diagnostics .hints )
42
+ table.insert (status_parts , config .indicator_hint .. config . indicator_separator .. buf_diagnostics .hints )
43
43
some_diagnostics = true
44
44
end
45
45
You can’t perform that action at this time.
0 commit comments