This flake exists because the nixpkgs neovim wrapper is a pain
and I conceptually disagree with nixvim
Based off the nixpkgs wrapper but:
- in one place
- more error checking
- a sane interface
evalModules
"type" checking- more convenience options
- doesn't take two functions to wrap
There are no flake inputs.
Add the flake input
mnw.url = "github:Gerg-L/mnw";
or import
the base of this repo using
to use flake-compat
Then use one of the modules or mnw.lib.wrap
The wrapper takes two arguments pkgs
and then an attribute set of config options
let
neovim = mnw.lib.wrap pkgs {
#config options
};
in {
...
then add it to environment.systemPackages
or users.users.<name>.packages
or anywhere you can add a package
Import {nixosModules,darwinModules,homeManagerModules}.mnw
into your respective config
and use the programs.mnw
options
programs.mnw = {
enable = true;
#other config
and it'll install the wrapped neovim to environment.systemPackages
or home.packages
to not install by default use the .dontInstall
module instead and add config.programs.mnw.finalPackage
where you want
See the generated docs: https://gerg-l.github.io/mnw/options.html
Make a PR to add your config :D