Skip to content

niksingh710/nvix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image


Neovim Configuration

Welcome to my Neovim configuration, inspired and powered by Nixvim.
This setup is a port of my previous configuration, which you can find here.
I've switched to using nix for its many advantages, which far outweigh any drawbacks.

GitHub repo size GitHub Org's stars GitHub forks GitHub last commit

Layout
 ./
├──  config/
│  ├──  lang/
│  └──  default.nix
├──  lib/
│  ├──  default.nix
│  └──  icons.nix
├──  flake.lock
├──  flake.nix
├──  LICENSE
└──  README.md
  • All .nix files under the config/lang directory are automatically imported by the config/lang/default.nix file, excluding itself.
  • The config/default.nix file is responsible for manually importing all configuration files within the config directory, allowing for selective inclusion of features.
  • The lib/default.nix file is responsible for importing all utility functions and modules.
  • The config/general.nix file contains small plugins that do not require extensive configuration.

I have added files in config/lang still not working :womp:. Ensure you have done git add <newfile> that's how flakes work. (git restore --staged . to revert). [Same for any new file.]

How to update plugins to latest version? -> nix flake update should do that. Also I regularly update the flake.lock file.

Installation

Ensure that you have nix installed on your system and flakes enabled.

Nix pkg manager installation

# This is multiuser installation of nix requires sudo
sh <(curl -L https://nixos.org/nix/install) --daemon
Quick run

As the config is based on flakes you can run it quickly without any long code snippet.

nix run "github:niksingh710/nvix"
Installing on non-NixOS systems
nix profile install "github:niksingh710/nvix"
Installing on NixOS systems
# flake input (ensure it is using unstable input of nixpkgs as i prefer that)
{
  inputs.nvix = {
    url = "github:niksingh710/nvix";
    inputs.nixpkgs.follows = "nixpkgs";
  };
}

# flake module pkg install or home-manager package (in my config i manager system variable)
# you may need to adjust that accordingly.
  [
    inputs.nvix.packages.${system}.default
  ];

Previews

Telescope

image

Dashboard

image

Lualine

image