diff options
| author | Abouzar Parvan <[email protected]> | 2022-09-20 14:11:58 +0430 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-20 14:11:58 +0430 | 
| commit | 518b1d4167162a54a6e76784038d30191613b76d (patch) | |
| tree | 6007451a5e1f77db9ee116ee1a262c8f0639115d /lua/lvim/core/breadcrumbs.lua | |
| parent | 03ec31253fc868b3ab5a8217640ec04248ae0046 (diff) | |
Fix: make sure latest plugins are customizable (#3044)
* fix: make navim-navic configurable
* fix: make sure vim-illuminate is configurable
* fix: make sure theme is configurable
* fix(ci): don't verify uninstalled plugins
* refactor(lsp): add setup_document_symbols util
* revert: keep onedarker on freeze branch
* refactor(lsp): avoid duplicate hl autocmds
Co-authored-by: kylo252 <[email protected]>
Diffstat (limited to 'lua/lvim/core/breadcrumbs.lua')
| -rw-r--r-- | lua/lvim/core/breadcrumbs.lua | 106 | 
1 files changed, 55 insertions, 51 deletions
| diff --git a/lua/lvim/core/breadcrumbs.lua b/lua/lvim/core/breadcrumbs.lua index 3b038473..9289cb03 100644 --- a/lua/lvim/core/breadcrumbs.lua +++ b/lua/lvim/core/breadcrumbs.lua @@ -3,60 +3,66 @@ local M = {}  -- local Log = require "lvim.core.log"  M.config = function() +  lvim.builtin.breadcrumbs = { +    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 = "ﳠ", +      }, +      highlight = true, +      separator = " " .. ">" .. " ", +      depth_limit = 0, +      depth_limit_indicator = "..", +    }, +  } +end + +M.setup = function()    local status_ok, navic = pcall(require, "nvim-navic")    if not status_ok then      return    end -  navic.setup { -    icons = { -      Text = " ", -      -- Method = "m", -      -- Function = "", -      -- Constructor = "", -      Method = " ", -      Function = " ", -      Constructor = " ", -      Field = " ", -      -- Variable = "", -      Variable = " ", -      Class = " ", -      Interface = " ", -      -- Module = "", -      Module = " ", -      Property = " ", -      Unit = " ", -      Value = " ", -      Enum = " ", -      -- Keyword = "", -      Keyword = " ", -      -- Snippet = "", -      Snippet = " ", -      Color = " ", -      File = " ", -      Reference = " ", -      Folder = " ", -      EnumMember = " ", -      Constant = " ", -      Struct = " ", -      Event = " ", -      Operator = " ", -      TypeParameter = " ", -      Array = " ", -      Number = " ", -      String = " ", -      Boolean = "蘒", -      Object = " ", -      Package = " ", -      Namespace = "", -      Key = "", -      Null = "ﳠ", -    }, -    highlight = true, -    separator = " " .. ">" .. " ", -    depth_limit = 0, -    depth_limit_indicator = "..", -  } +  M.create_winbar() +  navic.setup(lvim.builtin.breadcrumbs.options) + +  if lvim.builtin.breadcrumbs.on_config_done then +    lvim.builtin.breadcrumbs.on_config_done() +  end  end  M.winbar_filetype_exclude = { @@ -199,6 +205,4 @@ M.create_winbar = function()    end  end -M.create_winbar() -  return M | 
