Skip to content

Conversation

@teto
Copy link
Contributor

@teto teto commented Dec 15, 2025

When feed.nvim is installed via luarocks, it's missing the files in "scripts/" which makes the call to
vim.api.nvim_get_runtime_file("scripts/gfm.lua", false)[1] fail with:


Lua :command callback: ...to/.local/share/nvim/rocks/rocks_rtp/lua/feed/pandoc.lua:41: invalid value (nil) at index 5 in table for 'concat'
stack traceback:
        [C]: in function 'concat'
        ...to/.local/share/nvim/rocks/rocks_rtp/lua/feed/pandoc.lua:41: in function 'convert'
        ...e/teto/.local/share/nvim/rocks/rocks_rtp/lua/feed/ui.lua:263: in function 'impl'
        .../.local/share/nvim/rocks/rocks_rtp/lua/feed/commands.lua:325: in function '_load_command'
        ...ib/luarocks/rocks-5.1/feed.nvim/2.19.1-1/plugin/feed.lua:34: in function <...ib/luarocks/rocks-5.1/feed.nvim/2.19.1-1/plugin/feed.lua:28>

The action org has been renamed as well so I updated its name.

I was not able to test if this fix solved #212 since I could not think of a simple way to tell rocks.nvim to install from a local rockspec. But this seems like the correct thing to do anyway.

When feed.nvim is installed via luarocks, it's missing the files in
"scripts/" which makes the call to
`vim.api.nvim_get_runtime_file("scripts/gfm.lua", false)[1]` fail with:

```

Lua :command callback: ...to/.local/share/nvim/rocks/rocks_rtp/lua/feed/pandoc.lua:41: invalid value (nil) at index 5 in table for 'concat'
stack traceback:
        [C]: in function 'concat'
        ...to/.local/share/nvim/rocks/rocks_rtp/lua/feed/pandoc.lua:41: in function 'convert'
        ...e/teto/.local/share/nvim/rocks/rocks_rtp/lua/feed/ui.lua:263: in function 'impl'
        .../.local/share/nvim/rocks/rocks_rtp/lua/feed/commands.lua:325: in function '_load_command'
        ...ib/luarocks/rocks-5.1/feed.nvim/2.19.1-1/plugin/feed.lua:34: in function <...ib/luarocks/rocks-5.1/feed.nvim/2.19.1-1/plugin/feed.lua:28>
```

The action org has been renamed as well so I updated its name.
@neo451
Copy link
Owner

neo451 commented Dec 15, 2025

thank you for this!

@neo451 neo451 merged commit 7b8e30a into neo451:main Dec 15, 2025
1 check passed
@teto teto deleted the teto/fix-generated-rockspec branch December 15, 2025 16:39
@teto teto mentioned this pull request Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants