diff options
author | Abouzar Parvan <[email protected]> | 2022-10-13 15:21:25 +0330 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-13 15:21:25 +0330 |
commit | 09cbce44e54976a809c941a71579d7b3b4862b4e (patch) | |
tree | be7a243e16c872a76469af3844c7f07ce44bda50 | |
parent | 02aa0143896e8c98ced1dd605ca5defd50aedcb5 (diff) |
fix(breadcrumbs): make sure winbar_filetype_exclude is customizable (#3221)
-rw-r--r-- | lua/lvim/core/breadcrumbs.lua | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/lua/lvim/core/breadcrumbs.lua b/lua/lvim/core/breadcrumbs.lua index 33770af0..10f3f72f 100644 --- a/lua/lvim/core/breadcrumbs.lua +++ b/lua/lvim/core/breadcrumbs.lua @@ -8,6 +8,32 @@ M.config = function() lvim.builtin.breadcrumbs = { active = true, on_config_done = nil, + winbar_filetype_exclude = { + "help", + "startify", + "dashboard", + "packer", + "neo-tree", + "neogitstatus", + "NvimTree", + "Trouble", + "alpha", + "lir", + "Outline", + "spectre_panel", + "toggleterm", + "DressingSelect", + "Jaq", + "harpoon", + "dap-repl", + "dap-terminal", + "dapui_console", + "lab", + "Markdown", + "notify", + "noice", + "", + }, options = { icons = { Array = icons.Array .. " ", @@ -67,31 +93,6 @@ M.setup = function() end end -M.winbar_filetype_exclude = { - "help", - "startify", - "dashboard", - "packer", - "neo-tree", - "neogitstatus", - "NvimTree", - "Trouble", - "alpha", - "lir", - "Outline", - "spectre_panel", - "toggleterm", - "DressingSelect", - "Jaq", - "harpoon", - "dap-repl", - "dap-terminal", - "dapui_console", - "lab", - "Markdown", - "", -} - M.get_filename = function() local filename = vim.fn.expand "%:t" local extension = vim.fn.expand "%:e" @@ -161,7 +162,7 @@ local get_gps = function() end local excludes = function() - if vim.tbl_contains(M.winbar_filetype_exclude, vim.bo.filetype) then + if vim.tbl_contains(lvim.builtin.breadcrumbs.winbar_filetype_exclude, vim.bo.filetype) then return true end return false |