AstroNvim / AstroNvim/astrocommunity

Error message when after installing neorg

Open
#1,572 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Lua
Stars
1.7k
Forks
313
PR merge metrics
No merged PRs in 30d

Description

### Checklist

- [x] I have searched through the AstroNvim documentation
- [x] I have searched through the existing issues of this project
- [x] I have searched the existing issues of plugins related to this issue
- [x] I can replicate the bug with the minimal `repro.lua` provided below

### Neovim version (nvim -v)

NVIM v0.11.2

### Operating system/version

Archlinux

### Terminal/GUI

kitty+zellij

### Describe the bug

After I add the following line into my `~/.config/nvim/lua/community.lua` and restart nvim, it installs neorg plugin, right after installation of the plugin or restart nvim, a few notifications pop up.

```
# community.lua
{ import = "astrocommunity.note-taking.neorg" },
```

Error message:
```
[neorg]
.../lazy/neorg/lua/neorg/modules/core/completion/module/.lua:279
No engine specified, aborting...
```
Info message:
```
See https://github.com/nvim-treesitter/nvim-treesitter/#adding-parsers on how to add a new parser!
```

Error message:
```
Installation not possible: ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/install.lua:97: Parser not available for language "norg_meta"
```

### Steps to Reproduce

Add
```
# community.lua
{ import = "astrocommunity.note-taking.neorg" },
```

### Expected behavior

It should work without any error message.

### Screenshots

_No response_

### Additional Context

_No response_

### Minimal configuration

```Lua
-- SORRY, do not know how to add the norg part in this file.
-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
-- stylua: ignore
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)

-- install plugins
local plugins = {
{ "AstroNvim/AstroNvim", import = "astronvim.plugins" },
{ "AstroNvim/astrocommunity" },

-- add any other plugins/customizations here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})

-- add anything else here (autocommands, vim.filetype, etc.)
```

Contributor guide

Open the contributing guide

Research direction

Start with the community.lua import shown in the report and reproduce it using the provided repro.lua with Neovim v0.11.2. Inspect the Neorg completion error and the nvim-treesitter parser-installation message; done means importing astrocommunity.note-taking.neorg no longer produces either error notification.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.