Skip to content

Latest commit

 

History

History
71 lines (59 loc) · 1.31 KB

README.md

File metadata and controls

71 lines (59 loc) · 1.31 KB

nvim.nix

Usage

# flake.nix
inputs = {
  home-manager = {
    url = "github:nix-community/home-manager/release-24.05";
    inputs.nixpkgs.follows = "nixpkgs";
  };
  nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
  nixvim = {
    url = "github:nix-community/nixvim/nixos-24.05";
    inputs.nixpkgs.follows = "nixpkgs";
  };

  nvim = {
    url = "github:NuschtOS/nvim.nix";
    inputs.home-manager.follows = "home-manager";
    inputs.nixpkgs.follows = "nixpkgs";
  };
};

NixOS

# configuration.nix
{
  imports = [ inputs.nvim.nixosModules.nvim ];

  # See <https://nix-community.github.io/nixvim/NeovimOptions/index.html>
  # for availabe options.
  programs.nixvim.enable = true;
}

HomeManager

# home.nix
{
  imports = [ inputs.nvim.homeManagerModules.nvim ];

  # See <https://nix-community.github.io/nixvim/NeovimOptions/index.html>
  # for availabe options.
  programs.nixvim.enable = true;
}

Package

{
  environment.systemPackages = [ inputs.nvim.packages.x86_64-linux.nixvim ];
}
{
  environment.systemPackages = [
    (inputs.nvim.packages.x86_64-linux.nixvimWithOptions {
      inherit pkgs;
      # See <https://nix-community.github.io/nixvim/NeovimOptions/index.html>
      # for availabe options.
      options.enableMan = false;
    })
  ];
}