neovim config from scratch Using MNW Minimal NeoVim Wrapper
- This is not meant to be used without nix, but I am pretty sure it works ok.
Add this flake as an input
#flake.nix
{
inputs = {
nvim-flake = {
url = "github:kagurazakei/nvim-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly = {
url = "github:nix-community/neovim-nightly";
inputs.nixpkgs.follows = "nixpkgs";
};
...(Make sure you're passing inputs to your modules)
npins add github kagurazakei nvim-flake -b main
# add system wide
{
pkgs,
sources,
inputs,
}: {
environment.systemPackages = [
inputs.nvim-flake.packages.${pkgs.stdenv.system}.neovim
(pkgs.callPackage "${sources.nvim-flake}/default.nix" {
inherit mnw pkgs;
lib = pkgs.lib;
dev = false;
})
];
# add per-user
users.users."<name>".packages = [
inputs.nvim-flake.packages.${pkgs.stdenv.system}.neovim
(pkgs.callPackage "${sources.nvim-flake}/default.nix" {
inherit mnw pkgs;
lib = pkgs.lib;
dev = false;
})
];
}Update the flake like any other nix flake update
Add/remove/update plugins via npins ( aliased to start and opt if you're in the devShell)
Example of adding a plugin: start add github nvim-treesitter nvim-treesitter-context --branch main
Example of updated all plugins: start update --full && opt update --fullw



