Skip to content

pcfields/config-nvim

Repository files navigation

My Neovim config

Inspired by:

Videos with good instructions

Setup new system configuration

1. Install nix package manager

sh <(curl -L https://nixos.org/nix/install) --daemon

2. Install packages with nix

    LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
    curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
    tar xf lazygit.tar.gz lazygit
    sudo install lazygit /usr/local/bin

Or use Nix. Nix might be a version behind the github repo.

nix-env -iA nixpkgs.lazygit
nix-env -iA nixpkgs.nodejs_20

When installing global node packages on Linux you need to edit ~/.npmrc so that it tells npm to install and find "global" packages in your home folder instead of the root location:

prefix=~/.npm-packages

now any time you run npm i -g you will see that it will be installed inside of ~/.npm-packages.

Now in your shell rc file (f.e. .bashrc or .zshrc or similar), you'll need to update your PATH to include executables from the new location:

Add NPM executables to your PATH so that they are available as commands:

export PATH="$HOME/.npm-packages/bin:$PATH"

Often it is more convenient to manage ephemeral dependencies outside of the system-level package manager.

If you use something like n or nvm to manage specific node versions, you can do a similar thing by managing them in your home folder. Taken from https://stackoverflow.com/a/59606924/2527950


nix-env -iA nixpkgs.neovim

Install ripgrep for telescope grep search


sudo apt-get install ripgrep
# or
nix-env -iA nixpkgs.ripgrep

Install Nerd font for terminal icons in Neovim

About

Neovim config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages