Skip to content

Commit 83d15bb

Browse files
committed
refactor(core): Changed the events used to update bars & lines
1 parent 60c68fe commit 83d15bb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

plugin/bars.lua

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
-- local bars = require("bars");
21
require("bars.global");
32

4-
vim.api.nvim_create_autocmd({ "VimEnter", "BufEnter", "WinEnter" }, {
3+
vim.api.nvim_create_autocmd({
4+
"VimEnter",
5+
6+
"BufEnter",
7+
"WinEnter"
8+
}, {
59
callback = function (ev)
610
require("bars.statusline").attach(ev.buf);
711
require("bars.statuscolumn").attach(ev.buf);
812
require("bars.winbar").attach(ev.buf);
13+
require("bars.tabline").attach();
914
end
1015
});
1116

@@ -25,9 +30,6 @@ vim.api.nvim_create_autocmd({ "OptionSet" }, {
2530
require("bars.statusline").clean();
2631
require("bars.statuscolumn").clean();
2732
require("bars.winbar").clean();
28-
29-
-- require("bars.statusline").attach(ev.buf);
30-
-- require("bars.statuscolumn").attach(ev.buf);
31-
-- require("bars.winbar").attach(ev.buf);
33+
require("bars.tabline").clean();
3234
end
3335
});

0 commit comments

Comments
 (0)