Neovim configuration
| lua | ||
| bootstrap.sh | ||
| init.lua | ||
| install.sh | ||
| lazy-lock.json | ||
| README.md | ||
Neovim config
This repo contains my Neovim config only. You still need Neovim and a few system tools installed.
It is meant to work after a plain git clone plus the bootstrap script.
Fastest setup
git clone https://git.sailorpunisher.com/sailor/nvim-config.git ~/nvim-config
sh ~/nvim-config/bootstrap.sh
nvim
bootstrap.sh installs the dependencies for your distro, then installs the config.
If you already have the repo cloned and only want to refresh the config:
sh ~/.config/nvim/install.sh
What gets installed
gitneovimnodejs+npm(for Mason /bashls/ TypeScript / JSON / YAML LSPs)ripgrepfd
Debian / Ubuntu
sudo apt update
sudo apt install -y git neovim nodejs npm ripgrep fd-find
Then run:
sh ~/nvim-config/bootstrap.sh
Arch Linux
sudo pacman -S --needed git neovim nodejs npm ripgrep fd
Then run:
sh ~/nvim-config/bootstrap.sh
Gentoo
If emerge complains about missing /var/db/repos/gentoo or make.profile is invalid, fix Portage first:
sudo mkdir -p /etc/portage/repos.conf
sudo cp /usr/share/portage/config/repos.conf /etc/portage/repos.conf/gentoo.conf
sudo emerge-webrsync
sudo eselect profile list
sudo eselect profile set <number>
Then install the editor deps:
sudo mkdir -p /etc/portage/package.use
printf '%s\n' 'net-libs/nodejs npm' | sudo tee /etc/portage/package.use/nvim-config-nodejs
sudo emerge --ask dev-vcs/git app-editors/neovim net-libs/nodejs sys-apps/ripgrep
Then run:
sh ~/nvim-config/bootstrap.sh
If sys-apps/fd is unavailable or its distfile is broken, the bootstrap script will try cargo install fd-find and place fd in /usr/local/bin.
Notes
- First run downloads plugins through
lazy.nvim. - The config lives in
~/.config/nvim. - Out of the box it covers C, C++, Rust, Bash, Lua, JSON, YAML, Markdown, JavaScript, TypeScript, and GLSL.
- Shader extensions like
.vert,.frag,.comp,.geom,.rgen,.rchit,.rmiss,.rint, and.rcallare treated as GLSL. nodejs/npmare required so Mason can install the JS/TS/YAML/JSON tooling.- On Gentoo,
fdis installed by Portage if possible; otherwise the bootstrap script falls back tocargo install fd-find.