diff --git a/README.md b/README.md index a458bf0..0fcf5ef 100644 --- a/README.md +++ b/README.md @@ -65,8 +65,8 @@ The **Leader Key** is set to `Space`. | **Show Error** | `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** | `q` | Load all diagnostics into the quickfix list. | -| **Close Quickfix** | `:q ` | Close the quickfix window. | +| **Error List** | `el` | Load all diagnostics into the quickfix list. | +| **Close Quickfix** | `:q ` | Close the quickfix window while active. | ### Window Management | Action | Keybinding | Description | diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index be25a4a..a9d1dc3 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -75,7 +75,7 @@ return { vim.keymap.set("n", "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", "q", vim.diagnostic.setloclist, opts) -- all errors in quickfix list + vim.keymap.set("n", "el", vim.diagnostic.setloclist, opts) -- all errors in quickfix list vim.keymap.set("n", "af", vim.lsp.buf.format, { desc = "Format file" }) -- manual format -- Format on save