nixvim
nixvim copied to clipboard
[BUG] Setting programs.neovim.vimAlias conflicts with user's nixvim
| Field | Description |
|---|---|
| Plugin | gruvbox |
| Nixpkgs | unstable |
| Home Manager | unstable |
- [X] I have read the FAQ and my bug is not listed there.
Description
Setting programs.neovim.vimAlias = true in configuration.nix and using home manger to manage the user's vim installation via:
programs.nixvim = {
enable = true;
colorscheme.gruvbox.enable = true;
};
Causes the wrong lua to load from the nix store and vim cannot find gruvbox.
Minimal, Reproducible Example (MRE)
# Globally ...
programs.neovim = {
enable = true;
vimAlias = true;
};
# Per user ...
programs.nixvim = {
enable = true;
colorscheme.gruvbox.enable = true;
}
This probably isn't solvable unless we can somehow overright nixpkgs's neovim module but it should at least be called out in the documentation. Setting programs.nixvim.vimAlias = true works around the issue.