nixvim
nixvim copied to clipboard
plugins/crates: init
Add support for crates.nvim.
I am not convinced on whether I should explicitly declare some options or none...
Fixes #1149
@khaneliman if you happen to want to pick this up, go on :)
I could look at making changes to this pr as there is two version of crates both cmp and non cmp, to help out if needed.
I could look at making changes to this pr as there is two version of crates both cmp and non cmp, to help out if needed.
Feel free if you're interested. I can jump in if needed,
Is there any way of good testing?
Is there any way of good testing?
You can use nix flake lock --override-input in order to temporarily update a nixvim config's flake.lock to use a different input url.
For example:
# From a nixvim _config_ repo
# Use a local repo
nix flake lock --override-input nixvim ../nixvim-fork
# Use a PR branch
nix flake lock --override-input nixvim github:GaetanLepage/nixvim/crates
# Undo override
git restore flake.lock
You can also run nixvim's tests using the tests command while in a nixvim devshell:
# From a nixvim repo
# Enter devshell
nix develop
# Run tests for this plugin (interactive filter)
tests -i
> crates
I will resolve the conflict and everything on this weekend.
I'm going to close this for now. We have plugins.crates-nvim since #25 (renamed to plugins.crates in #2717).
This PR is so old the conflicts will be a nightmare.
If there's anything of value still in this PR, then new PRs can be created to improve or expand the plugins.crates module.