docs: add cookbook

bleed
htran 2023-10-02 02:27:22 -07:00
parent 6bd858ae4f
commit e31481c537
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Cookbook
## For highlight (groups) explorations, use `:lua require('telescope.builtin').highlights`
`:h telescope.builtin.highlights`. It's a winner in exploring the highlights
compared to `:highlight` that vomits to `:messages`-like interface that you
can't search
## Jump around diagnostics
Use `gh:folke/trouble` for window-persistent diagnostics. Otherwise, Telescope
provides a pretty good diagnostics
`:lua require("telescope.builtin").diagnostics {bufnr = <number | 0: current buffer | nil: all buffers}`
`:TroubleToggle loclist`
`:TroubleToggle workspace_diagnostics`