diff --git a/site-modules/core/files/vim/plugin/org.lua b/site-modules/core/files/vim/plugin/org.lua index a44408a..e69a9f2 100644 --- a/site-modules/core/files/vim/plugin/org.lua +++ b/site-modules/core/files/vim/plugin/org.lua @@ -1,6 +1,9 @@ -- TODO(ade): Set up org capture into the website node dir -- See https://github.com/AdeAttwood/Dotfiles/blob/86bf86d2010d7ec7b579e7b1c06632d5955f0a3c/site-modules/core/files/emacs/src/org.el#L107 +-- Needs to go before the orgmode.setup or tree sitter will start throwing errors +require('orgmode').setup_ts_grammar() + require('orgmode').setup({ org_agenda_files = {'~/Code/src/github.com/AdeAttwood/Website/data/*'}, }) @@ -8,4 +11,3 @@ require('orgmode').setup({ -- Dont folt heading on load. vim.cmd[[autocmd FileType org setlocal nofoldenable]] -require('orgmode').setup_ts_grammar()