File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed
Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 11local config = require (" doing.config" )
22local state = require (" doing.state" )
3- local utils = require (" doing.utils" )
43local edit = require (" doing.edit" )
54
65local Doing = {}
@@ -15,10 +14,8 @@ function Doing.setup(opts)
1514 if config .options .winbar .enabled then
1615 vim .api .nvim_create_autocmd ({ " BufEnter" , }, {
1716 callback = function ()
18- -- HACK: gives time to process filetype
19- vim .defer_fn (function ()
20- utils .update_winbar ()
21- end , 100 )
17+ vim .api .nvim_set_option_value (" winbar" , state .status (),
18+ { scope = " local" , })
2219 end ,
2320 })
2421 end
Original file line number Diff line number Diff line change @@ -2,14 +2,6 @@ local config = require("doing.config")
22
33local Utils = {}
44
5- --- redraw winbar depending on if there are tasks
6- function Utils .update_winbar ()
7- if config .options .winbar .enabled then
8- vim .api .nvim_set_option_value (" winbar" , require (" doing" ).status (),
9- { scope = " local" , })
10- end
11- end
12-
135--- checks whether the current window/buffer should display the plugin
146function Utils .should_display ()
157 -- once a window gets checked once, a variable is set to tell doing
You can’t perform that action at this time.
0 commit comments