-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nvim nightly] is_metadata_present
fails with attempt to call method 'range' (a nil value)
#1579
Comments
I'm using neorg |
This has caused a lot of plugin's to fail on nightly. I resolved it in my plugin recently: olimorris/codecompanion.nvim#190 Required me to be specific with the tree-sitter range. |
FYI for a workaround you can disable updating the date on save by setting Here is my config return {
{
'nvim-neorg/neorg',
enabled = true,
lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
version = '*', -- Pin Neorg to the latest stable release
config = function()
require('neorg').setup({
load = {
['core.defaults'] = {}, -- Loads default behaviour
['core.dirman'] = { -- Manages Neorg workspaces
config = {
default_workspace = 'notes',
workspaces = {
notes = '~/neorg/notes',
},
index = 'index.norg', -- The name of the main (root) .norg file
use_popup = true,
},
},
['core.summary'] = {},
['core.concealer'] = {}, -- Adds pretty icons to your documents
['core.itero'] = {}, -- <M-CR> to add header/list items
['core.promo'] = {}, -- promotes/demotes headers, etc
['core.qol.toc'] = {},
['core.qol.todo_items'] = {},
['core.export'] = {},
-- https://github.com/nvim-neorg/neorg/wiki/Metagen
['core.esupports.metagen'] = { config = { update_date = false } }, -- do not update date until https://github.com/nvim-neorg/neorg/issues/1579 fixed
},
})
end,
},
} |
noted. thanks! |
Prerequisites
Neovim Version
NVIM v0.11.0-dev-754+ga30afeeb8
Neorg setup
Actual behavior
Saving a norg file results in the following error and norg metadata is not automatically updated (e.g,
updated
date)Expected behavior
Saving a norg file has no errorr and norg metadata is automatically updated (e.g,
updated
date)Steps to reproduce
Open a norg file and save the file (
:w
)Example norg metadata:
Potentially conflicting plugins
No response
Other information
I can't reproduce on latest stable version of nvim
NVIM v0.10.1
OS: MacOS 14.6.1 (23G93)
Help
None
Implementation help
No response
The text was updated successfully, but these errors were encountered: