Selaa lähdekoodia

fix: nvim_dap has an issue with setting winbar for dapui_console filetype

Christian Chiarulli 2 vuotta sitten
vanhempi
commit
49de031b24
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 5 3
      lua/lvim/core/breadcrumbs.lua

+ 5 - 3
lua/lvim/core/breadcrumbs.lua

@@ -86,6 +86,7 @@ M.winbar_filetype_exclude = {
   "harpoon",
   "dap-repl",
   "dap-terminal",
+  "dapui_console",
   "lab",
   "Markdown",
   "",
@@ -125,9 +126,9 @@ M.get_filename = function()
       file_icon = lvim.icons.ui.Watches
     end
 
-    if buf_ft == "dapui_console" then
-      file_icon = lvim.icons.ui.DebugConsole
-    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 })
@@ -225,3 +226,4 @@ M.create_winbar = function()
 end
 
 return M
+