fix(vim): treesitter highlighting to org files
The treesitter plugin for org files was getting setup after the org plugin was loading, this is throwing errors when trying to view or edit org files. Now the plugin order has been changed so it all works correctly
This commit is contained in:
parent
5103be7421
commit
76e05f928c
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
-- TODO(ade): Set up org capture into the website node dir
|
-- 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
|
-- 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({
|
require('orgmode').setup({
|
||||||
org_agenda_files = {'~/Code/src/github.com/AdeAttwood/Website/data/*'},
|
org_agenda_files = {'~/Code/src/github.com/AdeAttwood/Website/data/*'},
|
||||||
})
|
})
|
||||||
|
|
@ -8,4 +11,3 @@ require('orgmode').setup({
|
||||||
-- Dont folt heading on load.
|
-- Dont folt heading on load.
|
||||||
vim.cmd[[autocmd FileType org setlocal nofoldenable]]
|
vim.cmd[[autocmd FileType org setlocal nofoldenable]]
|
||||||
|
|
||||||
require('orgmode').setup_ts_grammar()
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue