Compare commits

..

2 Commits

Author SHA1 Message Date
htran 86f1880748 Merge branch 'docs-cook-book' into bleed 2023-10-02 11:01:19 -07:00
htran e31481c537 docs: add cookbook 2023-10-02 02:27:22 -07:00
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`