Key maps¶
Leader is Space (<leader>). Press Space and wait for which-key to list groups.
The tables below come from lua/codeart/maps.lua, lua/codeart/plugins/which-key.lua, lua/codeart/comment.lua, lua/codeart/resize.lua and lua/codeart/plugins/blink.lua. Most maps only exist while the related plugin is enabled.
General¶
| Keys | Mode | Action |
|---|---|---|
<A-h> / <A-j> / <A-k> / <A-l> |
Normal, Terminal | Move to the split on the left / below / above / right |
<Tab> / <S-Tab> |
Normal | Next / previous buffer (bufferline) |
<Tab> / <S-Tab> |
Visual | Indent / unindent the selection and keep it selected |
J / K |
Visual | Move the selected lines down / up |
p |
Visual | Paste over the selection without yanking the replaced text |
<Esc> |
Terminal | Leave terminal mode |
<C-t> |
Normal, Insert | Toggle the terminal (ToggleTerm) |
Window resize¶
Built in (lua/codeart/resize.lua, replaced vim-resize in 2.3). The maps are edge-aware: the key moves the split border in the direction of the arrow.
| Keys | Mode | Action |
|---|---|---|
<C-Left> / <C-Right> |
Normal, Terminal | Resize horizontally (config.resize.step_h, default 3 columns) |
<C-Up> / <C-Down> |
Normal, Terminal | Resize vertically (config.resize.step_v, default 1 line) |
Set config.resize.keys = "shift_hjkl" to use the pre-2.3 H/J/K/L maps instead (this overrides those stock Vim motions). On macOS, Ctrl+Left/Right switch Spaces by default; turn that off in System Settings → Keyboard → Keyboard Shortcuts → Mission Control, or use shift_hjkl. disable_plugins.resize = true removes the maps; :call ResizeLeft(3) (and Right/Up/Down) keep working.
Completion and signature help¶
blink.cmp in insert mode:
| Keys | Action |
|---|---|
<C-Space> |
Show the menu / toggle documentation |
<CR> |
Accept the selected item |
<Tab> / <S-Tab> |
Next / previous item, or jump through snippet fields |
<C-e> |
Close the menu |
<C-d> / <C-f> |
Scroll the documentation |
<C-k> |
Toggle the signature help window (takes over i_CTRL-K digraphs while blink.cmp is enabled) |
The end-of-line parameter hint (config.signature_hint) has no keys; it appears while you type a call's arguments.
Leader maps¶
The tables in this section are generated from CodeArt's real key maps with the default settings (nvim -l scripts/gen_keymaps.lua; CI fails if they are out of date), so don't edit them by hand. Maps that need a disabled plugin are missing until you enable it.
| Keys | Group or action |
|---|---|
<leader>/ |
Comment line |
<leader>/ |
Comment selection (Visual) |
<leader>? |
Buffer-local key maps (which-key) |
<leader>b |
Buffer (group) |
<leader>c |
Colorscheme (group) |
<leader>d |
Debugging (group) |
<leader>f |
Find (group) |
<leader>g |
Git (group) |
<leader>l |
LSP (group) |
<leader>n |
Neo-tree (group) |
<leader>p |
Plugins (group) |
<leader>r |
Format the buffer |
<leader>R |
Run (group) |
<leader>t |
Terminal (group) |
<leader>T |
Test (group) |
Buffer¶
| Keys | Action |
|---|---|
<leader>bc |
Pick a buffer to close |
<leader>bC |
Close the current buffer |
<leader>be |
Clear search highlights |
<leader>bh |
Move the buffer left |
<leader>bl |
Move the buffer right |
<leader>bm |
Zoom the current buffer |
<leader>bn |
New buffer |
<leader>bz |
Zen mode |
Find¶
These, the git pickers, the colorscheme pickers and the diagnostics fallback open Telescope, or the snacks.nvim picker with config.picker = "snacks" (see Configuration).
| Keys | Action |
|---|---|
<leader>fb |
Buffers |
<leader>fB |
Marks |
<leader>fd |
Directories |
<leader>ff |
Files |
<leader>fh |
Help tags |
<leader>fo |
Recent files |
<leader>fp |
Projects |
<leader>fw |
Live grep |
Git¶
The commit, branch and status maps open the picker; the hunk maps use gitsigns.
| Keys | Action |
|---|---|
<leader>gb |
Branches |
<leader>gc |
Commit history |
<leader>gC |
Commits of this buffer |
<leader>gd |
Diff this file |
<leader>gj |
Next hunk |
<leader>gk |
Previous hunk |
<leader>gl |
Blame this line |
<leader>gp |
Preview the hunk |
<leader>gr |
Reset the hunk |
<leader>gR |
Reset the buffer |
<leader>gs |
Status and diff |
<leader>gS |
Stage the hunk |
<leader>gu |
Undo stage hunk |
LSP¶
| Keys | Action |
|---|---|
<leader>la |
Code action |
<leader>lc |
Run the code lens on this line |
<leader>lC |
Toggle code lens |
<leader>ld |
Line diagnostics |
<leader>lh |
Hover documentation |
<leader>lH |
Toggle inlay hints |
<leader>li |
LSP info (checkhealth) |
<leader>lI |
Mason |
<leader>lo |
Symbol outline |
<leader>lr |
Rename |
<leader>ls |
Signature help |
<leader>lg Go to
| Keys | Action |
|---|---|
<leader>lgd |
Definition |
<leader>lgD |
Declaration |
<leader>lgi |
Implementation |
<leader>lgj |
Next diagnostic |
<leader>lgk |
Previous diagnostic |
<leader>lgt |
Type definition |
<leader>ll Lists
| Keys | Action |
|---|---|
<leader>lld |
Diagnostics in the location list |
<leader>llD |
Diagnostics (Trouble) |
<leader>llr |
References |
<leader>lw Workspace folders
| Keys | Action |
|---|---|
<leader>lwa |
Add a workspace folder |
<leader>lwl |
List workspace folders |
<leader>lwr |
Remove a workspace folder |
<leader>llD opens Trouble, or the picker's diagnostics list if Trouble is disabled.
Code action, hover, rename, line diagnostics and diagnostic jumps use Neovim's built-in functions (vim.lsp.buf.*, vim.diagnostic.*). Code actions show in the picker's menu with config.picker = "snacks" (see Configuration).
Neovim's own LSP keys¶
Neovim 0.12 maps these by itself when a language server attaches, and CodeArt keeps them:
| Keys | Action |
|---|---|
K |
Hover documentation |
grn |
Rename |
gra |
Code action (normal and visual mode) |
grr |
References |
gri |
Go to implementation |
grt |
Go to type definition |
gO |
Document symbols |
]d / [d |
Next / previous diagnostic |
<C-w>d |
Diagnostics for the cursor position in a float |
See :help lsp-defaults and :help diagnostic-defaults.
lspsaga (optional)¶
lspsaga.nvim is off by default since 2.3. To turn it back on, set this in user/settings.lua and restart:
M.disable_plugins = {
lspsaga = false,
}
Then <leader>la, <leader>lh, <leader>lr, <leader>ld and <leader>lgj / <leader>lgk use lspsaga's code action, hover, rename, line diagnostics and diagnostic jumps again. Options go in config.lspsaga.
Neo-tree¶
| Keys | Action |
|---|---|
<leader>ne |
Reveal the current file |
<leader>nf |
Focus the file tree |
<leader>nt |
Toggle the file tree |
Inside neo-tree, <C-h> toggles hidden files.
Terminal¶
| Keys | Action |
|---|---|
<leader>tf |
Floating terminal |
<leader>th |
Horizontal terminal |
<leader>tH |
htop |
<leader>tl |
LazyGit |
<leader>tn |
Node.js REPL |
<leader>tN |
ncdu (disk usage) |
<leader>tp |
Python REPL |
<leader>tr |
Ranger |
<leader>tv |
Vertical terminal |
The Node.js, ncdu, htop, Python, Ranger and LazyGit terminals are only mapped if that program is installed.
Colorscheme¶
| Keys | Action |
|---|---|
<leader>cf |
Pick a colorscheme |
<leader>co |
Cycle the Onedark style |
<leader>cp |
Pick a colorscheme with live preview |
<leader>cc (Catppuccin) is added when you enable the catppuccin colorschemes (disable_plugins.catppuccin = false).
Plugin manager¶
| Keys | Action |
|---|---|
<leader>pc |
Check for plugin updates |
<leader>pd |
lazy.nvim debug view |
<leader>ph |
lazy.nvim home |
<leader>pi |
Install missing plugins |
<leader>pl |
Plugin update log |
<leader>pp |
Startup profile |
<leader>pr |
Remove unused plugins |
<leader>ps |
Sync plugins (install, clean, update) |
<leader>pu |
Update plugins |
Debugging¶
| Keys | Mode | Action |
|---|---|---|
<leader>dc |
Normal | Continue |
<leader>dd |
Normal | Open the debug console |
<leader>de |
Normal, Visual | Evaluate expression |
<leader>dl |
Normal | Run the last configuration |
<leader>dp |
Normal | Pause |
<leader>dt |
Normal | Terminate |
<leader>du |
Normal | Toggle the DAP UI |
<leader>db Breakpoints
| Keys | Action |
|---|---|
<leader>dbc |
Conditional breakpoint |
<leader>dbl |
Log point |
<leader>dbt |
Toggle breakpoint |
<leader>dbx |
Clear all breakpoints |
<leader>ds Step
| Keys | Action |
|---|---|
<leader>dsb |
Step back |
<leader>dsc |
Run to cursor |
<leader>dsi |
Step into |
<leader>dso |
Step over |
<leader>dsO |
Step out |
The usual IDE function keys work too:
| Keys | Action |
|---|---|
<F5> |
Start or continue debugging |
<F9> |
Toggle breakpoint |
<F10> |
Step over |
<F11> |
Step into |
<S-F11> |
Step out |
Debug adapters come from the language packs; see Debugging.
Test¶
Run tests with neotest; the adapters come from the language packs. See Testing.
| Keys | Action |
|---|---|
<leader>Ta |
Run all tests in the project |
<leader>Td |
Debug the nearest test |
<leader>Tf |
Run the tests in this file |
<leader>Tl |
Run the last test again |
<leader>Tn |
Run the nearest test |
<leader>To |
Show the test output |
<leader>TO |
Toggle the test output panel |
<leader>Ts |
Toggle the test summary |
<leader>TS |
Stop the running tests |
<leader>Tw |
Watch this file and rerun its tests |
Run¶
Run and build your project's tasks with overseer.nvim. See Running and building.
| Keys | Action |
|---|---|
<leader>Rb |
Build the project |
<leader>Rl |
Toggle the task list |
<leader>Rp |
Pick a task to run |
<leader>Rq |
Task output to quickfix |
<leader>Rr |
Run the last task (or pick one) |
<leader>RS |
Stop the running task |
Session¶
Only when sessions are on (config.sessions = { enabled = true }, see Sessions):
| Keys | Action |
|---|---|
<leader>sl |
Load the session for this folder |
<leader>ss |
Save the session for this folder |
<leader>sp |
Pick a session to load |
<leader>sd |
Delete the session for this folder |
Extras¶
Only when the extra is on (see Extras).
Editing extra (config.extras = { editing = true }):
| Keys | Mode | Action |
|---|---|---|
s |
Normal, Visual, Operator | Flash: jump to a label |
S |
Normal, Visual, Operator | Flash: select a Treesitter node |
af / if |
Visual, Operator | Around / inside the function |
ac / ic |
Visual, Operator | Around / inside the class |
aa / ia |
Visual, Operator | Around / inside the parameter |
]f / [f |
Normal, Visual, Operator | Next / previous function start |
]c / [c |
Normal, Visual, Operator | Next / previous class start (next / previous change in diff mode) |
<leader>fr |
Normal | Search and replace in the project (grug-far) |
f, t, F, T and / are not changed.
Git extra (config.extras = { git = true }):
| Keys | Action |
|---|---|
<leader>gD |
Diffview: changes in the repo |
<leader>gH |
Diffview: history of this file |
<leader>gX |
Diffview: close |
Zen and zoom¶
snacks.nvim zen (replaces true-zen.nvim). Both maps toggle: press them again to leave the mode.
| Keys | Action |
|---|---|
<leader>bm |
Maximize / zoom the current buffer (Snacks.zen.zoom()) |
<leader>bz |
Zen mode: centered, distraction-free editing (Snacks.zen()) |
:TZFocus still zooms, and :TZAtaraxis, :TZNarrow and :TZMinimalist still enter zen mode, but they are deprecated and show a one-time notice. Set disable_plugins.snacks = true to turn this off. disable_plugins.truezen is read as disable_plugins.snacks.
Comments¶
Line comments use Neovim's built-in commenting. ts-comments.nvim picks the right comment style from treesitter, so embedded languages (JS in <script>, JSX in TSX, and so on) get their own syntax.
| Keys | Mode | Action |
|---|---|---|
gcc |
Normal | Toggle line comment (built-in) |
gc{motion} / gc |
Normal / Visual | Toggle line comments over a motion or selection (built-in) |
gco / gcO |
Normal | Add a comment on a new line below / above |
gcA |
Normal | Add a comment at the end of the line |
<leader>/ |
Normal / Visual | Same as gcc / gc |
gbc |
Normal | Toggle a block comment around the current line |
gb{motion} / gb |
Normal / Visual | Toggle a block comment around a motion or selection (e.g. gbiw, gbj); . repeats it |
Block comments use the language's markers, such as /* */ (C, JS, CSS, ...), {/* */} (JSX), <!-- --> (HTML, Vue, Markdown), --[[ ]] (Lua), {- -} (Haskell), (* *) (OCaml, F#), #= =# (Julia), #[ ]# (Nim), <# #> (PowerShell), #| |# (Racket, Common Lisp, Scheme) and { } (Pascal). Running gb/gbc again on a wrapped range removes the markers. Languages without block comments (Python, shell, ...) get line comments instead.
Ruby (=begin/=end) and MATLAB/Octave (%{/%}) markers must be on their own lines, so gb always works on whole lines there: it adds a marker line above and below the range (Ruby's at column 0, MATLAB's at the range's indent). Running it again inside the block, over the marker lines, or gbc on either marker line removes them.
Set disable_plugins.comment = true to turn off the extra maps above (gco, gcO, gcA, gb, gbc, <leader>/); built-in gc/gcc stay. disable_plugins.ts_comments = true turns off ts-comments.nvim.
Dashboard shortcuts match these maps (e.g. New File → SPC b n).
Exact maps depend on which plugins you disable in user/settings.lua. Explore with which-key or read lua/codeart/plugins/which-key.lua.
Add your own maps with extra_which_keys — see Configuration.