fix(nvim): properly load orgmode from a lazy load context

By reloading a file via `:edit`, this triggers all events for the file
allowing Orgmode, now properly loaded, to respond to *ALL* events, not
just events that occur after `Filetype`.
This commit is contained in:
Price Hiller 2023-09-24 19:09:52 -05:00
parent 7c730ea8a6
commit 168b921645
No known key found for this signature in database

View File

@ -33,6 +33,9 @@ return {
org_agenda_files = "~/orgfiles/**/*",
org_default_notes_file = "~/orgfiles/refile.org",
})
if vim.bo.filetype == "org" then
vim.cmd.edit()
end
end,
}
}