lualine.nvim
lualine.nvim copied to clipboard
Bug: lualine dissapears when winbar is enabled on NvimTree file creation
Self Checks
- [x] I'm using the latest lualine.
- [x] I didn't find the issue in existing issues or PRs.
How to reproduce the problem
I've noticed that my lualine dissapears every time I create a file via NvimTree. Traced it back to the following conditions:
lualine should have winbar configured:
require('lualine').setup {
winbar = {
lualine_a = {
{ 'filename' },
},
},
}
nvim-tree should be enabled:
require 'nvim-tree'.setup {}
nvim-notify should be enabled as default notification provider
vim.notify = require("notify")
- Open tree
NvimTreeOpen - Create or delete some file
- Move to the buffer
Here is the screenshot before file manipulations
Minimal config to reproduce the issue
call plug#begin("/home/wb/dev/repro/.local/share/nvim/plugged")
" Your plugins go here like
Plug 'nvim-lualine/lualine.nvim'
Plug 'nvim-tree/nvim-tree.lua'
Plug 'rcarriga/nvim-notify'
call plug#end()
" Your Viml part of config goes here
" colorscheme onedark
lua << END
-- Your lua part of config goes here
require'lualine'.setup {
winbar = {
lualine_a = {
{ 'filename' },
},
},
}
require 'nvim-tree'.setup {}
vim.notify = require("notify")
END
Additional information
I have a similar issue. When winbar is enabled in lualine, each time I make a git commit using fugitive, lualine disappears.
My winbar config is simple:
winbar = {
lualine_a = {},
lualine_b = {},
lualine_c = {},
lualine_x = {'filetype'},
lualine_y = {'filename'},
lualine_z = {}
},
inactive_winbar = {},
If I disable winbar, I don't have any issues at all.
Hm, I can no longer reproduce the issue with winbar enabled. The lualine does not disappear after creating a git commit via fugitive. @onsails are you still seeing issues when using NvimTree?
Sorry can't test it, switched back to emacs