Dcschmid - Personal Neovim Cheatsheet
Dcschmid - Personal Neovim Cheatsheet
Dcschmid - Personal Neovim Cheatsheet
Basic Git
- open netrw file explorer :Git run git command in terminal, Eg: :Git checkout -b test
leader + w fast saving leader + gR Revert the current file to the specific commit
leader + ba close all the buffers leader + gb Open blame window
leader + tl toggle between this and the last accessed tab leader + go Open file/folder in git repository
leader + tn switch to next tab leader + gp Open pull request of the current branch
leader + so sort visual selection :LspInstallLog opens the log file in a new tab
window
Search :LspPrintInstalled prints all installed language servers
space search :LspUninstall [--sync] uninstalls language servers. Runs in
control + space backward search a blocking fashion if the --sync
argument is passed (only recomm‐
leader + space remove search highlights
ended for scripting purposes).
control + l Move to existing or create a new split to the right of your control + k Displays signature information about the symbol under
current window + open file or custom command the cursor in a floating window
gD Jumps to the declaration of the symbol under the
Session Management cursor.
:SessionDelete Delete the current session gd Jumps to the definition of the symbol under the cursor.
:SessionLoad Load the session for the current directory and gi Lists all the implementations for the symbol under the
current branch if git_use_branch = true cursor in the quickfix window.
:SessionLoadLast Load the last session gr Lists all the references to the symbol under the cursor
:SessionSave Save the current session in the quickfix window.
:SessionStart Start recording a session. Useful if autosave = space + Selects a code action available at the current cursor
false ca position.
:SessionStop Stop recording a session space + d Jumps to the definition of the type of the symbol under
the cursor.
:SessionToggle Determines whether to load, start or stop a
session space + e Show diagnostics in a floating window.
leader + sm open saved session list space + f Add buffer diagnostics to the location list.
space + rn Renames all references to the symbol under the cursor.
LSP Installer Commands
Gitlinker
:LspInstall [--sync] [server] installs/reinstalls language servers.
Runs in a blocking fashion if the --sync leader + gy generate shareable file permalinks (with line ranges)
argument is passed (only recomm‐
ended for scripting purposes).
:LspInstallInfo opens a graphical overview of your
language servers
Diffview
Git Worktree
Comment