This is a simple nixvim configuration that tries to be simple and easy to use.
Most of the files are included in subdirectories as default.nix
files so you could
add your own and just import them into those files.
Standalone:
$ nix run .
As part of a nixos configuration:
kaivim.nix
, or you can place this in any other nix file you're already using. I'll be using this
one in the flake, though.
args:
{
programs.nixvim = {
enable = true;
defaultEditor = true; # Optional
import = [args.kaivim.nixvimModule];
}
}
flake.nix
{
inputs = {
# ...
kaivim = {
url = "git://git.kaictl.me/kaictl/kaivim";
inputs.nixpkgs.follows = "nixpkgs";
}
# ...
};
outputs = {nixpkgs, ...}@args: {
hostname = nixpkgs.lib.nixosSystem {
modules = [
# This will allow you to use programs.nixvim
args.kaivim.inputs.nixvim.nixosModules.nixvim
# And this will include the .nix file that was made in the previous step.
./kaivim.nix
# ...
];
};
};
}
You should be able to rebuild your nix config and then run nvim
.