feat: add mini.ai
This commit is contained in:
parent
6476de3f61
commit
600306f9be
4 changed files with 67 additions and 77 deletions
|
|
@ -1,14 +1,15 @@
|
|||
# Neovim cheat sheet
|
||||
|
||||
Heavily customized. Related blog post: https://lugh.ch/neovim-lessons-learned.html
|
||||
|
||||
## BASICS
|
||||
|
||||
- `:checkhealth [<pluginname>]` check base or plugin status
|
||||
- `:checkhealth vim.lsp` show details of LSP attached to buffer
|
||||
- `:verbose set expandtab?` check where `expandtab` has been set last
|
||||
- `:Lazy` show package manager UI
|
||||
- `:Mason` show Mason UI
|
||||
- `:Lazy` show package manager TUI
|
||||
- `:Mason` show LSP management TUI
|
||||
- `:TSUpdate` update all Tree-sitter parsers
|
||||
- `:LspInfo` show attached LSP client details
|
||||
- `:ConformInfo` useful to debug why a formatter times out
|
||||
|
||||
## NAVIGATING
|
||||
|
|
@ -27,19 +28,19 @@
|
|||
## Buffers
|
||||
|
||||
- `leader`+`leader` lists open buffers in `snipe.nvim`
|
||||
- In snipe.nvim popup: Hit `d` to close the selected buffer
|
||||
- In snipe.nvim popup: Hit `D` to close the selected buffer
|
||||
- `:bd` close current buffer
|
||||
|
||||
## Text
|
||||
|
||||
- `w/e` move to **start/end of next word** (ignores punctuation due to remap)
|
||||
- `b` move to **start of previous word** (ignores punctuation due to remap)
|
||||
- `w/e` move to **start/end of next word**
|
||||
- `b` move to **start of previous word**
|
||||
- `Ctrl`+`0` start of line
|
||||
- `Ctrl`+`$` end of line
|
||||
- `Ctrl`+`d/u` scroll down/up 1/2 page while keeping the cursor centered
|
||||
- `Ctrl`+`o` jump to location you were before (e.g. after using `gg`)
|
||||
- `Ctrl`+`i` jump back to location you were before (after using `Ctrl`+`o`)
|
||||
- `s<chars>` highlight jump targets via `flash.nvim`
|
||||
- `s<chars>` highlight jump targets w/ `flash.nvim`
|
||||
|
||||
## LSP, Code & Diagnostics
|
||||
|
||||
|
|
@ -92,6 +93,8 @@
|
|||
- `:windo diffthis` open `vimdiff` for open splits
|
||||
- `:vert diffsplit <other/file>` diff this file and `<other/file>`
|
||||
- `:windo diffoff` to close diff view
|
||||
- `ciq` change inside quotes w/ `mini.ai`
|
||||
- `caq` change around quotes w/ `mini.ai`
|
||||
|
||||
## SELECTING
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue