Loading org file causes expected string, got table error
schultzter opened this issue · comments
Schultzter commented
Describe the bug
When I load an org file I get the error message:
Steps to reproduce
Open the following org file:
* This is the first header
This is a paragraph in the first section
** TODO This needs to get done :tag1:tag2:
SCHEDULED: <2023-11-04 Sat 16:00>
*** HEADING
Expected behavior
No errors!
Emacs functionality
No response
Minimal init.lua
require("nvim-treesitter.install").command_extra_args = {
curl = { "-k" },
}
require('nvim-treesitter.configs').setup({
highlight = {
enable = true;
disable = {'org'},
additional_vim_regex_highlighting = {'org'},
},
ensure_installed = {'org'},
})
require('orgmode').setup_ts_grammar()
require('orgmode').setup({
org_agenda_files = {'~/Documents/Notes/*'},
org_default_notes_file = {'~Documents/Notes/refile.org'}
})
Screenshots and recordings
No response
OS / Distro
Windows 11
Neovim version/commit
0.9.5
Additional context
No response
Schultzter commented
Kristijan Husak commented
Something's wrong with your org_capture_template
configuration. Can you paste that part of your config?
Schultzter commented
Thanks. I never changed that config - where would I find it?
Kristijan Husak commented
Your org_default_notes_file
should be a string, not a table. This is the correct config:
require('orgmode').setup({
org_agenda_files = {'~/Documents/Notes/*'},
org_default_notes_file = '~Documents/Notes/refile.org'
})
Schultzter commented
Perfect! Thank you.