Semi-minimalistic neovim configuration.
This configuration was heavily inspired by the Primeagen.
- neovim (v0.8.x)
- Nerd Fonts
- npm for downloading packages of LSP language servers
- ripgrep (for telescope plugin)
- GCC and g++
-
Backup existing configuration
-
Clone repository into
~/.config/nvim/
git clone git@github.com:timrekelj/neotim ~/.config/nvim- Start neovim and install packages with
:Lazy
I tried keeping up with my keybindings changes but I always forgot at least one change so you should browse through files to see the keybindings.
Native Neovim (0.11+) includes tree-sitter but doesn't ship a parser installer. You need to manually compile parsers and install their query files.
- Create the parser directory:
mkdir -p ~/.local/share/nvim/site/parser/- Clone the grammar repo and compile:
git clone https://github.com/tree-sitter/tree-sitter-go /tmp/tree-sitter-go
cd /tmp/tree-sitter-go && cc -o ~/.local/share/nvim/site/parser/go.so -shared src/parser.c -Os -I./src- Copy the query files:
mkdir -p ~/.local/share/nvim/site/queries/go
cp /tmp/tree-sitter-go/queries/*.scm ~/.local/share/nvim/site/queries/go/- Clean up:
rm -rf /tmp/tree-sitter-go- Restart Neovim — the language will now use treesitter highlighting.
Replace tree-sitter-go with the appropriate repo (e.g. tree-sitter-lua, tree-sitter-javascript). The query files may live in queries/ or runtime/queries/<lang>/ depending on the repo.
