Skip to content

timrekelj/neotim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neotim

Semi-minimalistic neovim configuration.

This configuration was heavily inspired by the Primeagen.

Requirements

Installation

  1. Backup existing configuration

  2. Clone repository into ~/.config/nvim/

git clone git@github.com:timrekelj/neotim ~/.config/nvim
  1. Start neovim and install packages with :Lazy

Keybindings

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.

Treesitter Parsers

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.

Steps (using Go as an example)

  1. Create the parser directory:
mkdir -p ~/.local/share/nvim/site/parser/
  1. 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
  1. 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/
  1. Clean up:
rm -rf /tmp/tree-sitter-go
  1. Restart Neovim — the language will now use treesitter highlighting.

For other languages

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.

About

Semi-minimalistic neovim configuration

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages