Neovim
Sometimes I forget how to use my own neovim configuration!
- LSP Errors in a Buffer
| Keybinding | Action |
|---|---|
| <leader>d | Show diagnostic float (popup) |
| <leader>ld | Send ALL diagnostics to quickfix list (buffer) |
| <leader>cd | Copy current line’s diagnostic to clipboard |
| ]d / [d | Jump to next/prev diagnostic |
| ]e / [e | Jump to next/prev error |
To copy errors: press <leader>ld then :copen to see them in a buffer.
- Notifications
Already installed! You have:
Snacks.nvim - <leader>nh shows notification history, <leader>nd dismisses all
Fidget.nvim - shows LSP progress in corner
Harpoon (Quick File Jumping)
Harpoon lets you “bookmark” files for instant access:
| Keybinding | Action |
|---|---|
| <leader>ha | Add current file to harpoon |
| <leader>ho | Open harpoon menu |
| <leader>hr | Remove file from harpoon |
| <leader>hc | Clear all marks |
| <leader>1-5 | Jump to file 1-5 |
- Telescope (Fuzzy Finder)
| Keybinding | Action |
|---|---|
| <leader>sf | Find files |
| <leader>sg | Live grep (search text) |
| <leader>sb | Search open buffers |
| <leader>? | Recent files |
| <leader>/ | Fuzzy search current buffer |
| gr | LSP references |
Inside Telescope: <C-j>/<C-k> to navigate, <Enter> to select.
- Leader Keys
Only Space is configured as leader: vim.g.mapleader = " " vim.g.maplocalleader = " "
Escape is not a leader key currently. Want me to set it up?
- File Tree
Oil.nvim is your file explorer:
- <leader>e - Toggle floating file explorer
It opens in a buffer where you can edit the filesystem like a text file (rename, delete, create files by editing lines).
Quick Reference Card: <Space>e → File explorer <Space>sf → Find files <Space>sg → Search text <Space>ha → Harpoon add <Space>1-5 → Jump to harpooned file <Space>d → Show error popup <Space>nh → Notification history
comments
select, then gc
telescope
┌────────────┬──────────────────────────────┐ │ Keybind │ Action │ ├────────────┼──────────────────────────────┤ │ <leader>? │ Find recently opened files │ ├────────────┼──────────────────────────────┤ │ <leader>sb │ Search open buffers │ ├────────────┼──────────────────────────────┤ │ <leader>sf │ Find files (hidden included) │ ├────────────┼──────────────────────────────┤ │ <leader>sh │ Search help tags │ ├────────────┼──────────────────────────────┤ │ <leader>sg │ Live grep search │ ├────────────┼──────────────────────────────┤ │ <leader>sc │ Search buffer commits │ ├────────────┼──────────────────────────────┤ │ <leader>/ │ Fuzzy find in current buffer │ ├────────────┼──────────────────────────────┤ │ <leader>ss │ Spell suggest │ ├────────────┼──────────────────────────────┤ │ <leader>sr │ LSP references │ ├────────────┼──────────────────────────────┤ │ <leader>si │ LSP implementations │ ├────────────┼──────────────────────────────┤ │ <leader>sd │ LSP document symbols │ ├────────────┼──────────────────────────────┤ │ <leader>sw │ LSP workspace symbols │ └────────────┴──────────────────────────────┘
Inside Telescope, the picker mappings are:
- Ctrl+j / Ctrl+k — navigate results
- Ctrl+q — send selected to quickfix list
- Ctrl+x — delete buffer