Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

global.lua:125: attempt to index a nil value when running :Org #949

Answered by kristijanhusak
DoloresHA asked this question in Q&A
Discussion options

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!

You must be logged in to vote

:Org command without the argument doesn't do anything. What would you expect to happen when you run it?

Replies: 2 comments

Comment options

:Org command without the argument doesn't do anything. What would you expect to happen when you run it?

You must be logged in to vote
0 replies
Answer selected by DoloresHA
Comment options

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!

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /