From 1eed9f572f29568a65cf2505e2dd37d1c2e7a309 Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Thu, 6 Oct 2022 02:49:58 +0000 Subject: feat(dap): buffernames for elements, icons, hide dap-repl by default (#3156) --- lua/lvim/core/breadcrumbs.lua | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'lua/lvim/core/breadcrumbs.lua') 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 }) -- cgit v1.2.3