chore: move cheatsheet generation to subfolder

This commit is contained in:
Oliver Ladner 2024-10-17 16:13:06 +02:00
commit 138471d0ae
10 changed files with 303 additions and 301 deletions

View file

@ -2,7 +2,7 @@
## BASICS ## BASICS
- `Space` leader key - `;` leader key
- `:checkhealth [<pluginname>]` check base or <pluginname> status - `:checkhealth [<pluginname>]` check base or <pluginname> status
- `:verbose set expandtab?` check where `expandtab` has been set last - `:verbose set expandtab?` check where `expandtab` has been set last
- `:Lazy` show package manager UI - `:Lazy` show package manager UI
@ -31,7 +31,8 @@
## Buffers ## 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 - `:bd` close current buffer
- `:bn` go to next buffer - `:bn` go to next buffer
- `:bp` go to previous buffer - `:bp` go to previous buffer
@ -49,16 +50,15 @@
- `Ctrl`+`i` jump back to location you were before (after using `Ctrl`+`o`) - `Ctrl`+`i` jump back to location you were before (after using `Ctrl`+`o`)
- `f<char>` jump forward to `<char>` - `f<char>` jump forward to `<char>`
- `F<char>` jump backwards to `<char>` - `F<char>` jump backwards to `<char>`
- `;` jump to next occurence of <char> on same line
- `,` jump to previous occurence of <char> on same line
## LSP, Code & Diagnostics ## LSP, Code & Diagnostics
- `Ctrl`+`n/p` scroll down/up through LSP suggestions - `Ctrl`+`n/p` scroll down/up through LSP suggestions
- `K` show LSP context info
- `Ctrl`+`l` accept selected suggestion - `Ctrl`+`l` accept selected suggestion
- `gd` go to definition - `gd` go to definition
- `gr` show references of function - `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`+`da` go to next diagnostic (any severity)
- `leader`+`dw` go to next diagnostic (warning severity) - `leader`+`dw` go to next diagnostic (warning severity)
- `leader`+`de` go to next diagnostic (error severity) - `leader`+`de` go to next diagnostic (error severity)

Binary file not shown.

View file

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After

View file

@ -3,5 +3,7 @@
# Packages required: # Packages required:
# - pandoc # - pandoc
# - basictex (brew install --cask basictex) # - basictex (brew install --cask basictex)
# Add timestamp to PDF
pandoc --standalone --from=markdown+yaml_metadata_block --template=tmpl.tex \ 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