Skip to content

DustinDust/neovim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My minimalistic neovim configuration

Inspired by Mr.ThePrimeagen (if u haven't followed him yet, check him out!)

Prerequisite

  1. Ripgrep
  2. Lazygit
  3. Some c/c++ compiler (to compile tree-sitter parsers)

Key binds

LSP key binds

key action mode
K* Hover current token Normal
gd* Go to definition Normal
<leader>ls Workspace symbol Normal
<leader>la Code action Normal
<leader>lR References Normal
<leader>lr Rename symbol Normal
<leader>lh Signature help Normal
Ctrl+h Signature help Insert
<leader>ld Open diagnostic Normal
[d Next diagnostic Normal
]d Previous diagnostic Normal
<leader>lf Format code Normal, Visual

Project navigation key binds

key action mode
<leader>pf Find project files Normal
Ctrl+p Find git files Normal
<leader>pws Search the project for the current word Normal
<leader>pWs Search the project for the current WORD Normal
<leader>ps Search the project for the user input string Normal
<leader>vh View help pages for Neovim & plugins Normal
<leader>ha Add current buffer to harpoon Normal
<leader>1 Move to marked buffer 1 Normal
<leader>2 Move to marked buffer 2 Normal
<leader>3 Move to marked buffer 3 Normal
<leader>4 Move to marked buffer 4 Normal
<leader>h1 Replace marked buffer 1 with current buffer Normal
<leader>h2 Replace marked buffer 2 with current buffer Normal
<leader>h3 Replace marked buffer 3 with current buffer Normal
<leader>h4 Replace marked buffer 4 with current buffer Normal
Ctrl+e Show marked buffers Normal
<leader>e show file explorer buffer Normal

Git

key action mode
<leader>gl Show lazy git UI Normal
<leader>gs Stage hunk Normal, Visual
<leader>gr Reset hunk Normal, Visual
<leader>gu Undo stage hunk Normal
<leader>gS Stage buffer Normal
<leader>gR Reset buffer Normal
<leader>gp preview hunk change Normal
<leader>gb Show blame for current line (more verbose) Normal
<leader>gB Toggle show blame current line Normal
<leader>gd Show diff Normal
<leader>gD Show diff against latest commit (same as above) Normal
<leader>gx Toggle deleted Normal
<leader>gh Select hunk under current cursor Visual, Visual Line
<leader>ga Attach Gitsign plugin (in case other key binds don't work) Normal
]c Jump to next hunk Normal
[c Jump to next hunk Normal

About

My minimal neovim config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages