Closed willdavidow closed 3 months ago
Thanks for the info! Quite a strange bug, will investigate it later this week.
Could you provide a stripped-down (minimal) version of dropbar and lualine config that reproduce this issue? Currently the lualine config is incomplete and the dropbar config is not minimal.
sure, here's my whole lualine
config - there's not too much going on here other than a small "last search" function.
local function search_result()
if vim.v.hlsearch == 0 then
return ""
end
local last_search = vim.fn.getreg "/"
if not last_search or last_search == "" then
return ""
end
local searchcount = vim.fn.searchcount { maxcount = 9999 }
return "🔍 " .. last_search .. " (" .. searchcount.current .. "/" .. searchcount.total .. ")"
end
return {
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
dependencies = {
"AndreM222/copilot-lualine",
"nvim-tree/nvim-web-devicons",
},
config = function()
local status_mode = require("noice").api.status.mode
require("lualine").setup {
options = {
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" },
ignore_focus = { "neo-tree", "dropbar_menu" },
theme = "tokyonight",
globalstatus = false,
},
sections = {
lualine_a = { "branch" },
lualine_b = {
{
status_mode.get,
cond = status_mode.has,
color = { fg = "#ff9e64" },
},
},
lualine_c = { "diagnostics", search_result },
lualine_x = { "copilot" },
lualine_y = { "progress" },
},
winbar = {
lualine_a = {
{
"filename",
path = 4,
separator = { left = "", right = "" },
padding = { left = 1, right = 1 },
draw_empty = false,
},
{
"%{%v:lua.dropbar.get_dropbar_str()%}",
separator = { left = "", right = "" },
color = "nil",
padding = { left = 0, right = 0 },
},
},
lualine_z = { { "filetype" } },
},
inactive_winbar = {},
extensions = { "quickfix", "man", "fugitive" },
}
end,
}
@Bekaboo I figured this out just now - it was another plugin that I used to be paired with nvim-navic
when I used that, and it was affecting the winbar. It is strange that it just started causing the flashing issue recently (I've been using dropbar
exclusively for months), but removing that plugin got rid of the flashing issue.
Apologies for opening the rogue bug report here.
Glad that you solved this problem yourself! 🎉
Description
I've noticed in the last week or two (without any configuration updates) that my winbar containing dropbar data has started flashing off and then back on after updating.
I'm having a difficult time figuring out if this issue is specfic to dropbar, or something else, but... I've tested by disabling dropbar and using
nvim-navic
to render my winbar and haven't seen the same thing happening.nvim version
NVIM v0.11.0-dev-3626+g5fc25ecc7-Homebrew
dropbar.nvim version
6567d50
Operating system and version
Mac OS Sonoma 14.5
Minimal config
Steps to reproduce
Expected behavior
Winbar does not flash/flicker.
Actual behavior
Winbar flashes/flickers
Additional information
https://github.com/user-attachments/assets/dee6b79d-883f-46a3-9157-336a2ff46b1d