-
-
Notifications
You must be signed in to change notification settings - Fork 167
global.lua:125: attempt to index a nil value when running :Org #949
-
When I run the :Org
command, I see an error printed that
Error executing Lua callback: ...local/share/nvim/lazy/orgmode/lua/orgmode/org/global.lua:125: attempt to index a nil value
stack traceback:
...local/share/nvim/lazy/orgmode/lua/orgmode/org/global.lua:125: in function <...local/share/nvim/lazy/orgmode/lua/orgmode/org/glob
al.lua:123>
This is with a new install, I'm new to nvim-orgmode and orgmode overall. I've tried a variety of troubleshooting steps to no avail, including re-installing, and fiddling with my lazy configuration.
Here's the result of checkhealth:
==============================================================================
orgmode: require("orgmode.health").check()
Orgmode ~
- OK Treesitter grammar installed (version 2.0.0)
- OK Setup called
- OK `org_agenda_files` configured
- OK `org_default_notes_file` configured
Here's my config:
return {
'nvim-orgmode/orgmode',
dependencies = {
{ 'nvim-treesitter/nvim-treesitter', lazy = false },
},
config = function()
require('orgmode').setup {
org_agenda_files = { '~/org/**/*.org' },
org_default_notes_file = '~/org/refile.org',
}
end
}
Other commands such as :Org agenda
work swell. I'd much appreciate any assistance!
Beta Was this translation helpful? Give feedback.
All reactions
:Org
command without the argument doesn't do anything. What would you expect to happen when you run it?
Replies: 2 comments
-
:Org
command without the argument doesn't do anything. What would you expect to happen when you run it?
Beta Was this translation helpful? Give feedback.
All reactions
-
Well, that's embarrassing. I misinterpreted item 1 at https://nvim-orgmode.github.io/#globals-and-commands and misconstrued it to mean that :Org
should produce some meaningful output. I put up a PR to help doofuses like me, although I won't be surprised or offended if it's rejected-- I have very little context for this codebase. Thank you for this excellent plugin!
Beta Was this translation helpful? Give feedback.