@@ -80,10 +80,10 @@ The available configuration are:
80
80
style = 'icon' | 'underline' | 'none' ,
81
81
},
82
82
buffer_close_icon = '',
83
- modified_icon = '●',
84
- close_icon = '',
85
- left_trunc_marker = '',
86
- right_trunc_marker = '',
83
+ modified_icon = '● ',
84
+ close_icon = ' ',
85
+ left_trunc_marker = ' ',
86
+ right_trunc_marker = ' ',
87
87
--- name_formatter can be used to change the buffer's label in the bufferline.
88
88
--- Please note some names can/will break the
89
89
--- bufferline so use this at your discretion knowing that it has
@@ -316,7 +316,7 @@ a custom function in your setup.
316
316
--- this should return a string
317
317
--- Don't get too fancy as this function will be executed a lot
318
318
diagnostics_indicator = function(count, level)
319
- local icon = level:match("error") and " " or ""
319
+ local icon = level:match("error") and " " or " "
320
320
return " " .. icon .. count
321
321
end
322
322
<
@@ -337,7 +337,7 @@ current buffer and only have them appear for other buffers.
337
337
return ''
338
338
end
339
339
340
- return ''
340
+ return ' '
341
341
end
342
342
<
343
343
@@ -361,7 +361,7 @@ In order to group buffers specify a list of groups in your config e.g.
361
361
name = "Tests", -- Mandatory
362
362
highlight = {underline = true, sp = "blue"}, -- Optional
363
363
priority = 2, -- determines where it will appear relative to other groups (Optional)
364
- icon = "", -- Optional
364
+ icon = " ", -- Optional
365
365
matcher = function(buf) -- Mandatory
366
366
return buf.filename:match('%_test') or buf.filename:match('%_spec')
367
367
end,
@@ -439,7 +439,7 @@ to other groups e.g.
439
439
options = {
440
440
groups = {
441
441
items = {
442
- require('bufferline.groups').builtin.pinned:with({ icon = " " })
442
+ require('bufferline.groups').builtin.pinned:with({ icon = " " })
443
443
... -- other items
444
444
}
445
445
}
@@ -1131,19 +1131,19 @@ to be shown in a list of tables. For example:
1131
1131
local hint = #vim.diagnostic.get(0, {severity = seve.HINT})
1132
1132
1133
1133
if error ~= 0 then
1134
- table.insert(result, {text = " " .. error, link = "DiagnosticError"})
1134
+ table.insert(result, {text = " " .. error, link = "DiagnosticError"})
1135
1135
end
1136
1136
1137
1137
if warning ~= 0 then
1138
- table.insert(result, {text = " " .. warning, link = "DiagnosticWarn"})
1138
+ table.insert(result, {text = " " .. warning, link = "DiagnosticWarn"})
1139
1139
end
1140
1140
1141
1141
if hint ~= 0 then
1142
- table.insert(result, {text = " " .. hint, link = "DiagnosticHint"})
1142
+ table.insert(result, {text = " " .. hint, link = "DiagnosticHint"})
1143
1143
end
1144
1144
1145
1145
if info ~= 0 then
1146
- table.insert(result, {text = " " .. info, link = "DiagnosticInfo"})
1146
+ table.insert(result, {text = " " .. info, link = "DiagnosticInfo"})
1147
1147
end
1148
1148
return result
1149
1149
end,
0 commit comments