Skip to content

unclechu/neovimrc

Repository files navigation

NeoVimRC

My own Neovim config.

How to use

Nix

Try it in a nix-shell

Neovim default TUI:

nix-shell --run nvim

Neovim QT GUI:

nix-shell --arg with-neovim-qt true --run nvim-qt

Neovide GUI:

nix-shell --arg with-neovide true --run neovide

Turn everything on:

nix-shell \
  --arg with-neovim-qt           true \
  --arg with-neovide             true \
  --arg with-clean-vim-script    true \
  --arg with-git-grep-nvr-script true \
  --arg with-nvimd-script        true

As a NixOS system dependency

{ pkgs, ... }:
let
  wenzels-neovim-src = pkgs.fetchFromGitHub {
    owner = "unclechu";
    repo = "neovimrc";
    rev = "ffffffffffffffffffffffffffffffffffffffff"; # Git commit hash
    sha256 = "0000000000000000000000000000000000000000000000000000";
  };

  # See the arguments of these *.nix files.
  # These are just simple examples which use defaults.
  wenzels-neovim    = pkgs.callPackage "${wenzels-neovim-src}/nix/apps/neovim.nix"    {};
  wenzels-neovim-qt = pkgs.callPackage "${wenzels-neovim-src}/nix/apps/neovim-qt.nix" {};
  wenzels-neovide   = pkgs.callPackage "${wenzels-neovim-src}/nix/apps/neovide.nix"   {};
in
{
  environment.systemPackages = [
    wenzels-neovim
    wenzels-neovim-qt
    wenzels-neovide
  ];
}
Also the scripts
{ pkgs, ... }:
let
  wenzels-neovim-src = pkgs.fetchFromGitHub {
    owner = "unclechu";
    repo = "neovimrc";
    rev = "ffffffffffffffffffffffffffffffffffffffff"; # Git commit hash
    sha256 = "0000000000000000000000000000000000000000000000000000";
  };

  clean-vim    = pkgs.callPackage "${wenzels-neovim-src}/nix/scripts/clean-vim.nix"    {};
  git-grep-nvr = pkgs.callPackage "${wenzels-neovim-src}/nix/scripts/git-grep-nvr.nix" {};
  nvimd        = pkgs.callPackage "${wenzels-neovim-src}/nix/scripts/nvimd.nix"        {};
in
{ environment.systemPackages = [ clean-vim git-grep-nvr nvimd ]; }

Other GNU/Linux distributions

  1. Clone this repo:

    git clone --recursive https://github.com/unclechu/neovimrc.git ~/.config/nvim
  2. Install dependencies:

    nvim +PlugInstall!

Author

Viacheslav Lotsmanov

License

MIT — For the code of this repository. Some third-party dependencies may have different licenses.