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:
parent
7c730ea8a6
commit
168b921645
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user