My own Neovim config.
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
{ 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
];
}
{ 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 ]; }
-
Clone this repo:
git clone --recursive https://github.com/unclechu/neovimrc.git ~/.config/nvim
-
Install dependencies:
nvim +PlugInstall!
Viacheslav Lotsmanov
MIT — For the code of this repository. Some third-party dependencies may have different licenses.