teto/haskell tools nvim enable tests#302147
Conversation
|
I dont know if it's an ideal we should strive for as it's pretty hypthetical in the current state of the ecosystem but it should be nice if we could just run Do you think it's something achievable with haskell-tools-nvim ? it might already be the case I haven't tested. |
I think there will still be quite a few neovim plugins that use plenary or something else, but it should be possible to run it automatically if there's a
That night work, if |
|
great. luarocks-nix should already add test_dependencies to Anyway waiting for #294057 (comment) to get merged before merging this |
e41f968 to
59d5e06
Compare
|
so this worked in a devShell but because I had #300905 in my local fork so we need to wait for that to reach master. |
the automatic shebang patch adds a -l in the shebang which nlua picks up and aborts saying it doesn't accept -l
59d5e06 to
4eeea00
Compare
limited to 5.1 as nlua uses neovim as lua interpreter, which is 5.1
4eeea00 to
a204cd0
Compare
|
Result of 11 packages built:
|
|
I had to enable the test only for lua5.1 else it would fail for missing dependencies. I haven't looked much into it, I suppose since lua is the interpreter, it might be looking in the wrong folders (eg with "5.1" in its paths) while the installed dependencies are named "5.3" and so on. Perfection being the enemy of good, let's improve this incrementally. Merging once darwin is confirmed to work |
🤔 Maybe neovim plugins shouldn't have lua > 5.1 listed as supported? |
in the lua package set, we dont know it's a neovim plugin (we could look at the rockspec tags/labels "neovim" ?). We follow the plugin recommendation. We could have haskell-tools.nvim requires lua == 5.1 then ? |
🤔 Perhaps it would make sense for
Is there any case in which we would want to be able to build a Neovim plugin for any other lua versions? |
None I can think of.
I think defining it by an input that then enables the label makes more sense. How do you set |
It defaults to adding the rtp directories if they exist (if you leave the input empty).
No. I decided to cater to neovim plugins by default, making it possible to disable neovim specific behaviour by setting the inputs explicitly. |
Description of changes
cc @mrcjkb
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.