summaryrefslogtreecommitdiff
path: root/lua/lvim/core/bufferline.lua
diff options
context:
space:
mode:
authorPhilippe Richard <[email protected]>2022-10-02 23:48:23 -0400
committerGitHub <[email protected]>2022-10-02 23:48:23 -0400
commit8767a17b5e6087153494a5cd30e5ae0c5165c9af (patch)
tree40f57839009330a85471662acf12f87f6e46017d /lua/lvim/core/bufferline.lua
parent228658b02e083d0294b737b39275f3b62c007b94 (diff)
feat: move icons to a single icons file (#3115)
Diffstat (limited to 'lua/lvim/core/bufferline.lua')
-rw-r--r--lua/lvim/core/bufferline.lua18
1 files changed, 11 insertions, 7 deletions
diff --git a/lua/lvim/core/bufferline.lua b/lua/lvim/core/bufferline.lua
index 6ae0d6c6..b8143813 100644
--- a/lua/lvim/core/bufferline.lua
+++ b/lua/lvim/core/bufferline.lua
@@ -6,7 +6,11 @@ end
local function diagnostics_indicator(num, _, diagnostics, _)
local result = {}
- local symbols = { error = "", warning = "", info = "" }
+ local symbols = {
+ error = lvim.icons.diagnostics.Error,
+ warning = lvim.icons.diagnostics.Warning,
+ info = lvim.icons.diagnostics.Information,
+ }
if not lvim.use_icons then
return "(" .. num .. ")"
end
@@ -59,14 +63,14 @@ M.config = function()
left_mouse_command = "buffer %d", -- can be a string | function, see "Mouse actions"
middle_mouse_command = nil, -- can be a string | function, see "Mouse actions"
indicator = {
- icon = "▎", -- this should be omitted if indicator style is not 'icon'
+ icon = lvim.icons.ui.BoldLineLeft, -- this should be omitted if indicator style is not 'icon'
style = "icon", -- can also be 'underline'|'none',
},
- buffer_close_icon = "",
- modified_icon = "●",
- close_icon = "",
- left_trunc_marker = "",
- right_trunc_marker = "",
+ buffer_close_icon = lvim.icons.ui.Close,
+ modified_icon = lvim.icons.ui.Circle,
+ close_icon = lvim.icons.ui.BoldClose,
+ left_trunc_marker = lvim.icons.ui.ArrowCircleLeft,
+ right_trunc_marker = lvim.icons.ui.ArrowCircleRight,
--- name_formatter can be used to change the buffer's label in the bufferline.
--- Please note some names can/will break the
--- bufferline so use this at your discretion knowing that it has