-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: support rocks.nvim/luarocks #60
Conversation
@mrcjkb you should remove that example for |
@folke you mean the one in this repo's readme or in the rocks.nvim readme? In the rocks.nvim readme, I added a footnote that the example is for lazy.nvim pre-11.0. In this repo, we would need to add a rockspec or a lazy.lua to the repo root. I'm hesitant to add a rockspec that includes luarocks tree-sitter parsers in the dependencies, because I'm not sure how well that would work with lazy.nvim. i.e.:
With that in mind, I think maybe a lazy.lua would be a better option for plugins that depend on tree-sitter parsers (neorg is an exception because nvim-treesitter dropped it). |
Nobody sees that footnote. Please remove that info about lazy. It's not correct. As for luarocks, I personally couldn't care less. I only have negative experience with it so far. I'm considering of disabling luarocks support in lazy by default, since too many users have issues with it, that honestly don't even need it. It was a nice experiment for sure, but luarocks just isn't there yet. Edit: I meant the info here https://github.com/nvim-neorocks/rocks.nvim?tab=readme-ov-file#grey_question-why-rocksnvim |
lazy is the most widely used plugin manager for NeoVim, so that statement is |
rocks.nvim has quite a few macos users; it's just a pita if you use hererocks or homebrew.
We've discussed this before. Please don't shed a bad light on luarocks because your users are having a bad experience with lazy.nim's implementation.
In theory, but not in practice (yet), until most plugins that have dependencies have a rockspec, lazy.lua or a pkg.json in the repo root (see our wiki article on packspec). If you feel strongly about it, I'll happily remove the lazy example from the rocks.nvim readme this evening when I get back home. |
@mrcjkb Sorry for the late reply, I didn't have internet connection and then was busy fixing issues. Does the file need to be maintained? Or do I have to do something(other than just merging this)? |
No problem 😄 Here are the scenarios where the
To be able to publish to luarocks, you need an API key (see the note in the PR message). You need releases or SemVer tags for the workflow to be triggered. If you don't want to do that, I can add this plugin to the NURR.
|
Looks like my knowledge is lacking to say the least. Oh well, guess I am reading more docs. I will merge this after I actually learn to use workflows(or API keys or any of the other stuff) and get a proper versioning of the plugin set up. |
This is all very new stuff in the Neovim plugin ecosystem 😄 And of course, if you feel like it's too much of a maintenance burden, we understand. |
Huh, neat. Guess I will check that out too.
Nah, even if it is too much maintainance I will still try to add maximum support coverage. I mean I only have a single proper plugin so it shouldn't be too much(plus it's a good learning experience, in case I ever need to work in IT). |
Hey there, @mrcjkb! 👋 I am trying to set up On the on:
push:
branches:
- dev So, I thought it would create new release after I push changes to the However, it didn't seem to work? It shows an old pull request that I merged. Did I get it up incorrectly? Or does it not create releases when commits are pushed in the specific branch? |
release-please opens a release PR when you push to the specified branch. |
But why does it not have the changes I commited to the Does it only works for changes in the |
Turns out I had to use the |
This is a test commit. Ref: #60
I couldn't merge this pull request to the dev branch for some reason. So, I just manually copied the file. |
Hey 👋
Summary
This PR is part of a push to get neovim plugins on luarocks.org.
See also:
With luarocks/rocks.nvim, it is the plugin authors' responsibility to declare dependencies and build instructions - not the user's.
Installing this plugin becomes as simple as
:Rocks install markview.nvim
.Things done:
See also: this guide
Important
As there are no release tags, this workflow won't do anything yet.
If you do not want to maintain SemVer releases, an alternate option would be a scheduled workflow
that publishes an
scm
rockspec.I strongly advise against this, because it means users cannot pin versions or roll back.
Notes:
Important
neovim
and/orvim
labels have to be added to the luarocks package manually (after the first upload), for this plugin to show up in https://luarocks.org/labels/neovim or https://luarocks.org/labels/vim, respectively.