Error: Error executing lua callback: ...e/nvim/lazy/pommodoro-clock.nvim/lua/pommodoro-clock.lua:233: attempt to index field 'popup' (a nil value)
nyngwang opened this issue · 0 comments
nyngwang commented
These are the lines that caused the following error:
pommodoro-clock.nvim/lua/pommodoro-clock.lua
Lines 230 to 235 in eb7a591
01:33:26 msg_show Error executing lua callback: ...e/nvim/lazy/pommodoro-clock.nvim/lua/pommodoro-clock.lua:233: attempt to index field 'popup' (a nil value)
stack traceback:
...e/nvim/lazy/pommodoro-clock.nvim/lua/pommodoro-clock.lua:233: in function <...e/nvim/lazy/pommodoro-clock.nvim/lua/pommodoro-clock.lua:232>
To reproduce:
- run
require('pommodoro-clock').start(some_key)
. - run
require('pommodoro-clock').close()
. - create a vsplit.
I believe that you should remove this autocmd
after it's close()
d.