/nvim-config

My Neovim configuration files and some notes to consider when using them.

Primary LanguageLua

davnpsh's Neovim config.


example img


This repository contains my personal configuration files for Neovim based on ThePrimeagen's configuration.

Dependencies

For clipboard and some plugins to work:

  • Neovim >= 0.9
  • nodejs >= 14.14 (must include npm)
  • xclip
  • ripgrep

In Arch Linux:

doas pacman -S neovim xclip ripgrep npm

Installation

Make a folder the nvim folder under $HOME/.config/. Then, clone this repository locally and paste lua/ and after/ folders there.

mkdir "$HOME/.config/nvim" \
tempdir=$(mktemp -d) \
git clone https://github.com/davnpsh/nvim-config.git "$tempdir" \
cp -r "$tempdir/lua" "$tempdir/after" "$HOME/.config/nvim" \
rm -r "$tempdir"

For Linux, install packer.nvim:

git clone --depth 1 https://github.com/wbthomason/packer.nvim\
 ~/.local/share/nvim/site/pack/packer/start/packer.nvim

First usage

Open Neovim, ignore errors and execute :PackerSync. Finally, close and reopen Neovim.

Plugins

These are the plugins I currently use (this list may be outdated, check lua/davnpsh/packer.lua for an updated version):

Current plugin manager.

For grepping strings and recent files.

Catppuccin theme.

Better highlightning.

It can be treated as a dependency, but it is better to install it and let it have its own folder.

Statusline.

Just a simple indent line when tabbing.

For LSP and extensions.

I use these:

  • coc-pairs for autopairs.
  • Language servers like tssserver.

For editing markdown.

Having a tree of folders and files is nice.

gnu_linux arch_linux neovim