Neovim (LazyVim) key commands
LazyVim keymap documentation: https://www.lazyvim.org/keymaps .
Related to: notes / Neovim command line commands
All keybindings below are for normal mode otherwise stated.
Launch which-key #
LazyVim uses
which-key.nvim
to show available
keybindings in a window. The window opens automatically. E.g. hit the leader key (<space>) in
normal mode and a window opens (for me) on the right showing the available key commands.
Launch fzf-lua #
LazyVim uses fzf-lua as a replacement for telescope.nvim.
<leader>ff: find files (root dor)<leader>fF: find files (cwd)
Launch Neo-tree #
Neo-tree is the file explorer that opens (for me) in a left-hand sidebar window.
<leader>e: opens the explorer on the root dir<leader>E: opens the explorer on the current working directory
Display diagnostics in a floating window #
<C-wd>: show diagnostics under the cursor
Move to end of word #
Move cursor to the end of the current word, if the cursor isn’t on the end of the current word, otherwise, more the cursor to the end of the next word.
<e>
Move to beginning of next word #
Move to beginning of next word:
<w>
Jump to previous or next section #
Useful for jumping between headings in markdown files (and what prompted me to create this document).
[[: jump to previous section (heading)]]: jump to next section (heading)
Select a word #
In normal mode, put cursor somewhere over word, then:
viw(visual in word)
This will leave you in visual mode
Make selected word uppercase or lowercase (visual mode) #
With the word selected in visual mode:
U: uppercase the wordu: lowercase the word
Manually open the blink.cmp autocomplete menu #
When completion is enabled ( see: Toggle autocomplete ) the blink.cmp completion menu can be manually opened with “<C + Space>”. This seems to depend on the current filetype though.
Specific to my config #
Toggle autocomplete #
In both normal and insert mode, toggle autocompletion with “<C + q>” (the “control” key and the “q” key).
Make single character uppercase or lowercase #
Select the character with visual mode. (From normal mode, just hit v):
U: uppercase the characteru: lowercase the character