diff options
Diffstat (limited to 'lua/lvim/core/breadcrumbs.lua')
-rw-r--r-- | lua/lvim/core/breadcrumbs.lua | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/lua/lvim/core/breadcrumbs.lua b/lua/lvim/core/breadcrumbs.lua index cdddd9e8..d6db55a5 100644 --- a/lua/lvim/core/breadcrumbs.lua +++ b/lua/lvim/core/breadcrumbs.lua @@ -84,13 +84,8 @@ M.winbar_filetype_exclude = { "DressingSelect", "Jaq", "harpoon", - "dapui_scopes", - "dapui_breakpoints", - "dapui_stacks", - "dapui_watches", "dap-repl", "dap-terminal", - "dapui_console", "lab", "Markdown", "", @@ -112,6 +107,28 @@ M.get_filename = function() file_icon = lvim.icons.kind.File end + local buf_ft = vim.bo.filetype + + if buf_ft == "dapui_breakpoints" then + file_icon = lvim.icons.ui.Bug + end + + if buf_ft == "dapui_stacks" then + file_icon = lvim.icons.ui.Stacks + end + + if buf_ft == "dapui_scopes" then + file_icon = lvim.icons.ui.Scopes + end + + if buf_ft == "dapui_watches" then + file_icon = lvim.icons.ui.Watches + end + + if buf_ft == "dapui_console" then + file_icon = lvim.icons.ui.DebugConsole + end + local navic_text = vim.api.nvim_get_hl_by_name("Normal", true) vim.api.nvim_set_hl(0, "Winbar", { fg = navic_text.foreground }) |