<C-w>
then lots of options inwhich-key
window- Change layout uses capital
HJKL
letters. - Horizontal split to vertical split:
<C-w>H
- this rotates the splits anti-clockwise. Will work on any layout.
J
,K
,L
keys also work.
- Jump to text based on character pairs. In normal mode type
s
(orS
to search backwards from cursor). After a couple of chars, you will see labels in the text.
Things that can be searched:
- Buffers
<tab>r
- Command:
:lua require('telescope.builtin').buffers({ ignore_current_buffer = true, sort_mru = true })<CR>
- Files in repo
<tab>f
- Command:
<CMD>lua require'plugins.telescope'.find_files_fallback()<CR>
- excludes git ignored files if in a git repository. If not in a git repository, searches all files.
- All files
<tab>a
- Command:
:Telescope find_files<CR>
- Text - whole project, respects .gitignore
<tab>s
- Command:
:Telescope live_grep<CR>", { noremap = true, silent = true, desc = "Telescope ripgrep (not fuzzy)" }
- uses ripgrep, not FZF.
- Search for a string in your current working directory, respects
.gitignore
. Requires Ripgrep.
- Text - flexible
<tab>x
- Command:
:lua require('telescope').extensions.live_grep_args.live_grep_args()<CR>
- enables passing arguments to ripgrep
--no-ignore
- searches inside files ignored by git-tpy
or--type python
- searches only in files with .py extension.
- ripgrep commands
- extension
- Your command history
<tab>tc
- Command:
:Telescope command_history<CR>
- a history of anything done in
EX
mode
- Your search history
<tab>ts
- Command:
:Telescope search_history<CR>
- Keymaps
<tab>tk
- Command:
:Telescope keymaps<CR>
- Registers
<tab>tr
- Command:
:Telescope registers<CR>
- Git
- Commits
- Branches
- Status
- Bcommits
- Resume
- whatever you were doing last in telescope
<tab>z
- Autocommands
- Treesitter things
- Vim options
- Help files
- Projects
- fzf
- fzf-native
- this gives better performance and sorting behavior. (Also includes FZF
syntax
\!
,\'
,\^
,\$
)
- projects
- harpoon
- live_grep_args repo
- smart_history
-
m,
- create next sign -
m;
- toggle next available mark at current line -
dmx
- delete mark x -
dm<space>
- delete all marks in current buffer -
m:
- preview mark -
m]
- next mark -
m[
- previous mark
Not sure what these are, see :h marks-bookmarks
m[0-9]
- Add a bookmark
- blame current line
<leader>sb
- Symbols:
|
- added or changed_
- deleted-
- top delete~
- change number
- stage buffer
<leader>sS
toggle-lsp-diagnostics
can toggle virtual text diagnostic messages, but doesn't include the source of the diagnostic. Therefore I wrote a separate function for toggling diagnostic virtual text.- View which language server generated a diagnostic message using
<Leader>l
. (LSPSaga line diagnostics includes server name.)
- LSP-Finder
<Leader>i
- Outline
<Leader>o
- Documentation window hover
K
- Code actions
<Leader>a
- Rename
<Leader>r
- Go to previous diagnostic
[e
- Go to previous error
[E
- Go to definition
gd
- Peek definition
gld
- Line diagnostics
<Leader>ll
- Cursor diagnostics
<Leader>lc
- List of errors:
<Leader>q
- Go to type definition
<Leader>D