Nvim configuration
nix
  • Nix 98.4%
  • Vim Snippet 1.6%
Find a file
2026-04-30 10:57:42 +02:00
config update nvim dependencies 2026-03-03 14:16:33 +01:00
.envrc Add more! 2024-11-17 22:02:08 +01:00
.gitignore Add git ignore 2024-12-05 15:52:53 +01:00
flake.lock update nvim 2026-04-30 10:57:42 +02:00
flake.nix update nvim dependencies 2026-03-03 14:16:33 +01:00
README.md update doc 2025-04-27 21:31:26 +02:00

Nixvim template

This template gives you a good starting point for configuring nixvim standalone.

Configuring

To start configuring, just add or modify the nix files in ./config. If you add a new configuration file, remember to add it to the config/default.nix file

Testing your new configuration

To test your configuration simply run the following command

nix run .

Installation

Option 1: Using nix run

nix run --extra-experimental-features 'nix-command flakes' git+https://0xee.cc/smgt/nix-nvim

Option 2: Adding as a Flake Input:

In your system's Nix configuration (e.g., ~/.config/nixpkgs/flake.nix or ~/.config/nixpkgs/home.nix), add the following:

inputs = {
  nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";  # Or your preferred channel
  smgtvim.url = "git+https://0xee.cc/smgt/nix-nvim";
};

outputs = { self, nixpkgs, smgtvim }: {
  # ... your other configuration ...

  # Add to your system packages or devShell if you want to make it available system-wide
  packages = with nixpkgs; [
    smgtvim.packages.${system}.default
  ];

  # Or, use in a devShell:
  devShells.default = nixpkgs.mkShell {
    nativeBuildInputs = [ smgtvim.packages.${system}.default ];
  };
};
# HTTPS
nix profile install git+https://0xee.cc/smgt/nix-nvim
# SSH
nix profile install git+ssh://git@0xee.cc/smgt/nix-nvim.git\?ref=main