Update commands
This commit is contained in:
@@ -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 |
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user