README

June 24, 2024 ยท View on GitHub

This is my Neovim config.

I use this config on macOS. There's no reason it wouldn't work on Linux, BSD, etc, but most distros have NeoVim 0.7 or earlier so I don't bother.

Requirements

  • Neovim 0.9+
  • LuaJIT

Optional, but some things won't work without them:

  • ripgrep (for Telescope "find string" <leader>fs)
  • tree-sitter and Node.js (for tree-sitter plugins)
  • lazygit (for LazyGit <leader>g)
  • prettier (for NeoFormat)

Custom key maps

(I use <space> as my <leader>.)

ModeMapPlugin(s)Description
normal<ctrl-j>harpoonjump to next file in Harpoon list
normal<ctrl-k>harpoonjump to previous file in Harpoon list
normal<ctrl-t>ftermtoggle terminal pane
normal[t, ]ttodo-commentsjump to previous or next TODO/FIX/etc comment
normal<leader><leader>harpoonopen Harpoon window
normal<leader> aharpoonadd current file/buffer to Harpoon list
normal<leader> bdaptoggle breakpoint
normal<leader> Bdapset breakpoint, overwrite if necessary
normal<leader> dfdapdebug: view stack frame in a centered floating window
normal<leader> dhdapdebug: view value of thing under cursor in a hover
normal<leader> dcdapdebug: Continue
normal<leader> didapdebug: step Into
normal<leader> dodapdebug: step Out
normal<leader> dvdapdebug: step oVer
normal<leader> dldapdebug: run last debug config
normal<leader> dpdapdebug: view value of thing under cursor in preview window
normal<leader> drdapdebug: open REPL
normal<leader> dsdapdebug: view current scopes in a centered floating window
normal<leader> eopen file explorer
normal<leader> f.telescope"find " - fuzzy find in this buffer
normal<leader> fatelescope"find again" - open with same search as last time
normal<leader> fbtelescope"find buffer"
normal<leader> fctelescope"find command"
normal<leader> fCtelescope"find Colorscheme"
normal<leader> fdtelescope"find in diagnostics"
normal<leader> fftelescope"find file"
normal<leader> fgtelescope"find in git" - honors .gitignore
normal<leader> fhctelescope"find in command history"
normal<leader> fhstelescope"find in search history"
normal<leader> fjtelescope"find in jumplist"
normal<leader> fmtelescope"find mark"
normal<leader> fstelescope"find string" (requires ripgrep)
normal<leader> fttelescope"find in tree-sitter"
normal<leader> Fneoformatrun Neoformat on file (requires prettier)
normal<leader> glazygitopen lazygit UI (requires lazygit)
normal<leader> Llazyopen lazy UI (plugin manager)
normal<leader> lpdapset breakpoint with log, {var} interpolation
normal<leader> Mmasonopen mason (LSP, linter, formatter, DAP manager)
normal<leader> ppaste from system clipboard
normal<leader> Ppaste (before cursor) from system clipboard
normal<leader> y <motion>copy to system clipboard
normal<leader> ztoggle wrap mode
visualJmove selection down, with re-indent
visualKmove selection up, with re-indent
visual<leader> ycopy selection to system clipboard