Update commands

This commit is contained in:
2026-03-18 11:45:55 +02:00
parent fe6230225e
commit 9b20b6703e
2 changed files with 3 additions and 3 deletions

View File

@@ -65,8 +65,8 @@ The **Leader Key** is set to `Space`.
| **Show Error** | `<leader>e` | Open a floating window with the full error under cursor. |
| **Next Error** | `]d` | Jump to the next diagnostic in the file. |
| **Previous Error** | `[d` | Jump to the previous diagnostic in the file. |
| **Quickfix List** | `<leader>q` | Load all diagnostics into the quickfix list. |
| **Close Quickfix** | `:q <Enter>` | Close the quickfix window. |
| **Error List** | `<leader>el` | Load all diagnostics into the quickfix list. |
| **Close Quickfix** | `:q <Enter>` | Close the quickfix window while active. |
### Window Management
| Action | Keybinding | Description |

View File

@@ -75,7 +75,7 @@ return {
vim.keymap.set("n", "<leader>e", vim.diagnostic.open_float, opts) -- show error under cursor
vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, opts) -- jump to previous error
vim.keymap.set("n", "]d", vim.diagnostic.goto_next, opts) -- jump to next error
vim.keymap.set("n", "<leader>q", vim.diagnostic.setloclist, opts) -- all errors in quickfix list
vim.keymap.set("n", "<leader>el", vim.diagnostic.setloclist, opts) -- all errors in quickfix list
vim.keymap.set("n", "<leader>af", vim.lsp.buf.format, { desc = "Format file" }) -- manual format
-- Format on save