Hey,
I was wondering as to what is the best way to setup neovim on Nixos.
I have looked at Nixvim and Nixcats, but they seem too complicated at the moment.
So far, I have set up flakes, home-manager, and with things being modular.
This is my neovim module:
{ config, pkgs, pkgs-unstable, lib, ... }:
{
options = {
neovim.enable = lib.mkEnableOption "enables neovim";
};
config = lib.mkIf config.neovim.enable {
#home.packages = [ pkgs.wl-clipboard ];
programs.neovim = {
package = pkgs-unstable.neovim-unwrapped;
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
};
};
}
At the moment, it is not fully complete. But I was wondering as to what is the best way to make sure that I use the unstable branch of neovim, so far I am using neovim-unrapped
, as I have tried to use neovim
but I ended up getting an error.
- Is it a good idea to use
neovim-unwrapped
? - What are the implications of an ‘unwrapped’ package?
Lastly, I also would like to pass in my old neovim configuration, which is just mainly based on kickstart.nvim.
- Would using home-manager to configure neovim be viable? As I have heard that installing LSP’s through mason doesn’t really work with NixOS.
Thanks.