From 168b921645d3f7b61ff2fd8581c4723862ad6aaa Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 24 Sep 2023 19:09:52 -0500 Subject: [PATCH] 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`. --- dots/.config/nvim/lua/plugins/configs/org-mode.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dots/.config/nvim/lua/plugins/configs/org-mode.lua b/dots/.config/nvim/lua/plugins/configs/org-mode.lua index 5c5b4288..8b2c34dc 100644 --- a/dots/.config/nvim/lua/plugins/configs/org-mode.lua +++ b/dots/.config/nvim/lua/plugins/configs/org-mode.lua @@ -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, } }