Victor Aremu's neovim config.
To use this configuration:
- Clone this repository:
git clone https://github.com/ahkohd/nvim.git ~/.config/nvim
- Launch Neovim, and the plugins will be automatically installed (assuming you have a plugin manager,
lazy.nvim
).
Once installed, you can start using Neovim with this configuration immediately. Refer to the init.vim
file for configuration settings and mappings.
To quickly set up Neovim with this configuration, you can use the following script:
curl -fsSL https://raw.githubusercontent.com/ahkohd/nvim/main/scripts/nvim-config | sh
This script will download and apply the Neovim configuration automatically.
If you're using a Nix derivative, you can add the following derivation to your Nix configuration:
{ pkgs ? import <nixpkgs> { } }:
pkgs.stdenv.mkDerivation {
name = "nvim-config";
version = "0.0.0";
src = builtins.fetchGit {
url = "https://github.com/ahkohd/nvim.git";
rev = "pick a commit hash";
# for example:
# ref = "895701f62118fc7078d323ace49934428d50e0a8"
};
installPhase = ''
mkdir -p $out/bin
cp -r $src/scripts/nvim-config $out/bin/nvim-config
chmod +x $out/bin/nvim-config
'';
}
This derivation fetches the Neovim configuration from this repository and installs it into your system.
To add it to your system packages, modify your configuration.nix as follows:
environment.systemPackages = with pkgs; [
nvim-config
];
After adding the package, rebuild your NixOS system using:
sudo nixos-rebuild switch
Then, you can run:
nvim-config --help