nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

plugins/crates: init

Open GaetanLepage opened this issue 1 year ago • 5 comments

Add support for crates.nvim.

I am not convinced on whether I should explicitly declare some options or none...

Fixes #1149

GaetanLepage avatar Mar 04 '24 18:03 GaetanLepage

@khaneliman if you happen to want to pick this up, go on :)

GaetanLepage avatar Sep 16 '24 21:09 GaetanLepage

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.

Eveeifyeve avatar Sep 17 '24 12:09 Eveeifyeve

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,

khaneliman avatar Sep 17 '24 13:09 khaneliman

Is there any way of good testing?

Eveeifyeve avatar Sep 27 '24 14:09 Eveeifyeve

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

MattSturgeon avatar Sep 28 '24 08:09 MattSturgeon

I will resolve the conflict and everything on this weekend.

Eveeifyeve avatar Dec 05 '24 01:12 Eveeifyeve

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.

MattSturgeon avatar Dec 19 '24 00:12 MattSturgeon