Skip to content

Using rocks.nvim with Nix and home-manager #229

Answered by mrcjkb
florentc asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋

The package in nixpkgs is currently a bit outdated, and I use the flake output mainly for testing during development.
In principle, you could use the neovim-with-rocks derivation (which I use for testing) as a basis for setting up rocks.nvim with a nix/home-manager managed neovim.

But here are some caveats to be aware of when using the nix derivation:

  • rocks.nvim is designed to manage itself, so it adds a "rocks.nvim" plugin entry to the rocks.toml.
    If you don't remove that entry, it'll install the rocks.nvim lua package, and you'll have two conflicting installations.
    One in the nix store, and one managed by rocks.nvim.
  • If you use nix to manage the rocks.nvim package, and remove the…

Replies: 5 comments 14 replies

Comment options

You must be logged in to vote
4 replies
@c3n21
Comment options

@mrcjkb
Comment options

@c3n21
Comment options

@mrcjkb
Comment options

Answer selected by mrcjkb
Comment options

You must be logged in to vote
1 reply
@mrcjkb
Comment options

Comment options

You must be logged in to vote
8 replies
@AlphabetsAlphabets
Comment options

@mrcjkb
Comment options

@AlphabetsAlphabets
Comment options

@mrcjkb
Comment options

@AlphabetsAlphabets
Comment options

Comment options

You must be logged in to vote
1 reply
@mrcjkb
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants