diff options
| author | Philippe Richard <[email protected]> | 2022-10-02 23:48:23 -0400 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-02 23:48:23 -0400 | 
| commit | 8767a17b5e6087153494a5cd30e5ae0c5165c9af (patch) | |
| tree | 40f57839009330a85471662acf12f87f6e46017d /lua/lvim/core/breadcrumbs.lua | |
| parent | 228658b02e083d0294b737b39275f3b62c007b94 (diff) | |
feat: move icons to a single icons file (#3115)
Diffstat (limited to 'lua/lvim/core/breadcrumbs.lua')
| -rw-r--r-- | lua/lvim/core/breadcrumbs.lua | 41 | 
1 files changed, 3 insertions, 38 deletions
| diff --git a/lua/lvim/core/breadcrumbs.lua b/lua/lvim/core/breadcrumbs.lua index 23b516db..dd7f5163 100644 --- a/lua/lvim/core/breadcrumbs.lua +++ b/lua/lvim/core/breadcrumbs.lua @@ -7,42 +7,7 @@ M.config = function()      active = false,      on_config_done = nil,      options = { -      icons = { -        Text = " ", -        Method = " ", -        Function = " ", -        Constructor = " ", -        Field = " ", -        Variable = " ", -        Class = " ", -        Interface = " ", -        Module = " ", -        Property = " ", -        Unit = " ", -        Value = " ", -        Enum = " ", -        Keyword = " ", -        Snippet = " ", -        Color = " ", -        File = " ", -        Reference = " ", -        Folder = " ", -        EnumMember = " ", -        Constant = " ", -        Struct = " ", -        Event = " ", -        Operator = " ", -        TypeParameter = " ", -        Array = " ", -        Number = " ", -        String = " ", -        Boolean = "蘒", -        Object = " ", -        Package = " ", -        Namespace = "", -        Key = "", -        Null = "ﳠ", -      }, +      icons = lvim.icons.kind,        highlight = true,        separator = " " .. ">" .. " ",        depth_limit = 0, @@ -107,7 +72,7 @@ M.get_filename = function()      vim.api.nvim_set_hl(0, hl_group, { fg = file_icon_color })      if f.isempty(file_icon) then -      file_icon = "" +      file_icon = lvim.icons.kind.File      end      local navic_text = vim.api.nvim_get_hl_by_name("Normal", true) @@ -165,7 +130,7 @@ M.get_winbar = function()    if not f.isempty(value) and f.get_buf_option "mod" then      -- TODO: replace with circle -    local mod = "%#LspCodeLens#" .. "" .. "%*" +    local mod = "%#LspCodeLens#" .. lvim.icons.ui.Circle .. "%*"      if gps_added then        value = value .. " " .. mod      else | 
