diff options
author | Christian Chiarulli <[email protected]> | 2022-10-06 02:49:58 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-06 02:49:58 +0000 |
commit | 1eed9f572f29568a65cf2505e2dd37d1c2e7a309 (patch) | |
tree | 3ed1d7c5b1af887d5fc227beeaa98b3c4b664848 /lua/lvim/core/breadcrumbs.lua | |
parent | c1edf56826f507096e54400f37f2bdd9da369d26 (diff) |
feat(dap): buffernames for elements, icons, hide dap-repl by default (#3156)
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 }) |