diff --git a/CHEATSHEET.md b/CHEATSHEET.md index 1a51a61..947b153 100644 --- a/CHEATSHEET.md +++ b/CHEATSHEET.md @@ -2,7 +2,7 @@ ## BASICS -- `Space` leader key +- `;` leader key - `:checkhealth []` check base or status - `:verbose set expandtab?` check where `expandtab` has been set last - `:Lazy` show package manager UI @@ -31,7 +31,8 @@ ## Buffers -- `Space`+`Space` shows buffers sorted by last used (via `Telescope buffers`) +- `leader`+`leader` shows buffers via [snipe.nvim](https://github.com/leath-dub/snipe.nvim) +- In snipe.nvim popup: Hit `d` to close the selected buffer - `:bd` close current buffer - `:bn` go to next buffer - `:bp` go to previous buffer @@ -49,16 +50,15 @@ - `Ctrl`+`i` jump back to location you were before (after using `Ctrl`+`o`) - `f` jump forward to `` - `F` jump backwards to `` -- `;` jump to next occurence of on same line -- `,` jump to previous occurence of on same line ## LSP, Code & Diagnostics - `Ctrl`+`n/p` scroll down/up through LSP suggestions +- `K` show LSP context info - `Ctrl`+`l` accept selected suggestion - `gd` go to definition - `gr` show references of function -- `leader`+`qq` toggle `trouble.nvim` quickfix list +- `leader`+`q` toggle `trouble.nvim` quickfix list - `leader`+`da` go to next diagnostic (any severity) - `leader`+`dw` go to next diagnostic (warning severity) - `leader`+`de` go to next diagnostic (error severity) diff --git a/CHEATSHEET.pdf b/CHEATSHEET.pdf index dfea447..51ec51c 100644 Binary files a/CHEATSHEET.pdf and b/CHEATSHEET.pdf differ diff --git a/logo.png b/mkcheatsheet/logo.png similarity index 100% rename from logo.png rename to mkcheatsheet/logo.png diff --git a/mkcheatsheet.sh b/mkcheatsheet/mkcheatsheet.sh similarity index 65% rename from mkcheatsheet.sh rename to mkcheatsheet/mkcheatsheet.sh index 0713ca8..12d59c1 100755 --- a/mkcheatsheet.sh +++ b/mkcheatsheet/mkcheatsheet.sh @@ -3,5 +3,7 @@ # Packages required: # - pandoc # - basictex (brew install --cask basictex) + +# Add timestamp to PDF pandoc --standalone --from=markdown+yaml_metadata_block --template=tmpl.tex \ ---metadata-file=vars.yml --pdf-engine=xelatex -o CHEATSHEET.pdf CHEATSHEET.md + --metadata-file=vars.yml --pdf-engine=xelatex -o ../CHEATSHEET.pdf ../CHEATSHEET.md diff --git a/tmpl.tex b/mkcheatsheet/tmpl.tex similarity index 100% rename from tmpl.tex rename to mkcheatsheet/tmpl.tex diff --git a/vars.yml b/mkcheatsheet/vars.yml similarity index 100% rename from vars.yml rename to mkcheatsheet/vars.yml