Skip to content

Commit cb16c03

Browse files
authored
fix: run Org init as part of setup (#664)
This ensures that notifications do not error on startup. Prior to this commit the `OrgFiles` object wasn't loaded in time for notifications to work.
1 parent 6fdcaa1 commit cb16c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function Org.setup(opts)
139139
config:setup_ts_predicates()
140140
vim.defer_fn(function()
141141
if config.notifications.enabled and #vim.api.nvim_list_uis() > 0 then
142-
Org.files:load():next(vim.schedule_wrap(function()
142+
Org.instance().files:load():next(vim.schedule_wrap(function()
143143
instance.notifications = require('orgmode.notifications')
144144
:new({
145145
files = Org.files,

0 commit comments

Comments
 (0)