Update commands
This commit is contained in:
parent
fe6230225e
commit
9b20b6703e
2 changed files with 3 additions and 3 deletions
|
|
@ -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. |
|
| **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. |
|
| **Next Error** | `]d` | Jump to the next diagnostic in the file. |
|
||||||
| **Previous Error** | `[d` | Jump to the previous 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. |
|
| **Error List** | `<leader>el` | Load all diagnostics into the quickfix list. |
|
||||||
| **Close Quickfix** | `:q <Enter>` | Close the quickfix window. |
|
| **Close Quickfix** | `:q <Enter>` | Close the quickfix window while active. |
|
||||||
|
|
||||||
### Window Management
|
### Window Management
|
||||||
| Action | Keybinding | Description |
|
| 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", "<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_prev, opts) -- jump to previous error
|
||||||
vim.keymap.set("n", "]d", vim.diagnostic.goto_next, opts) -- jump to next 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
|
vim.keymap.set("n", "<leader>af", vim.lsp.buf.format, { desc = "Format file" }) -- manual format
|
||||||
|
|
||||||
-- Format on save
|
-- Format on save
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue