-
-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Description
This problem is only noticeable to me through lualine, but I can only reproduce it when dropbar is active, which makes me think it might be dropbar related. If the lualine repo is a more appropriate place to submit this bug report, please let me know.
I use lualine with laststatus = 3 so that the bar always stays in the same place, but the contents will change. But if I have the following conditions met:
- Have multiple panes on the screen
- Focus anything other than the top left pane
- Have dropbar active (e.g. opening it as a blank test.lua file)
Then, when I open the command/ex mode by pressing :, then lualine will blank and take some amount of time to reload. Sometimes, it's very quick, while other times it can be about a second.
nvim version
NVIM v0.12.0-dev-1755+g6383123326 Build type: RelWithDebInfo LuaJIT 2.1.1764593432
dropbar.nvim version
Operating system and version
Linux arch 6.18.1-arch1-2
Minimal config
local tmp = vim.env.TMPDIR
or vim.env.TEMPDIR
or vim.env.TMP
or vim.env.TEMP
or '/tmp'
local data = tmp .. '/' .. (vim.env.NVIM_APPNAME or 'nvim')
local packages_root = data .. '/site'
local cloned_root = packages_root .. '/pack/packages/start'
local cloned_path_dropbar = cloned_root .. '/dropbar.nvim'
local url_dropbar = 'https://github.com/Bekaboo/dropbar.nvim.git'
local cloned_path_lualine = cloned_root .. '/lualine.nvim'
local url_lualine = 'https://github.com/nvim-lualine/lualine.nvim.git'
vim.fn.mkdir(cloned_root, 'p')
vim.opt.pp:prepend(packages_root)
vim.opt.rtp:prepend(packages_root)
if not vim.loop.fs_stat(cloned_path_dropbar) then
vim.fn.system({ 'git', 'clone', url_dropbar, cloned_path_dropbar })
end
if not vim.loop.fs_stat(cloned_path_lualine) then
vim.fn.system({ 'git', 'clone', url_lualine, cloned_path_lualine })
end
vim.go.laststatus = 3
require('dropbar').setup()
require('lualine').setup()Steps to reproduce
- Save the above file as minimal.lua
nvim --clean -u minimal.lua- Open blank file which has dropbar
:e test.lua - Split the pane
:splitor:vsplit - Press
:and then<esc>a few times for expected lualine behavior - Navigate to the pane not in top left via
<c-w>lor<c-w>j - Press
:and then<esc>a few times to see the delayed lualine behavior
Expected behavior
Dropbar being active should not affect lualine
Actual behavior
With laststatus = 3, focus on a pane that's not in top left, and dropbar active, lualine is affected.
Additional information
Here's a video of me trying it with dropbar active and not active, in the focused split and not.