aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorguru245 <guru245@users.noreply.github.com>2025-04-19 15:01:38 +0900
committerGitHub <noreply@github.com>2025-04-19 14:01:38 +0800
commitba00e3fa3dcb1acd60a7e5ab7cbac4c67491f255 (patch)
treeb365b2cfa8fb15c04aad066828bcdd8b0d71784d /README.md
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-ba00e3fa3dcb1acd60a7e5ab7cbac4c67491f255.tar
nvim-lspconfig-ba00e3fa3dcb1acd60a7e5ab7cbac4c67491f255.tar.gz
nvim-lspconfig-ba00e3fa3dcb1acd60a7e5ab7cbac4c67491f255.tar.bz2
nvim-lspconfig-ba00e3fa3dcb1acd60a7e5ab7cbac4c67491f255.tar.lz
nvim-lspconfig-ba00e3fa3dcb1acd60a7e5ab7cbac4c67491f255.tar.xz
nvim-lspconfig-ba00e3fa3dcb1acd60a7e5ab7cbac4c67491f255.tar.zst
nvim-lspconfig-ba00e3fa3dcb1acd60a7e5ab7cbac4c67491f255.zip
docs: update README.md for diagnostic mappings (#3750)
Now that vim.diagnostic.goto_prev() and vim.diagnostic.goto_next() have been deprecated, update the README with up-to-date information.
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 24bbdda9..985d882e 100644
--- a/README.md
+++ b/README.md
@@ -60,7 +60,8 @@ Nvim sets some default options and mappings when a buffer attaches to LSP (see [
* [`'formatexpr'`][formatexpr]
- Enables LSP formatting with [`gq`][gq].
* `K` maps to [`vim.lsp.buf.hover()`][vim.lsp.buf.hover] in Normal mode.
-* `[d` and `]d` map to `vim.diagnostic.goto_prev()` and `vim.diagnostic.goto_next()`, respectively.
+* `[d` and `]d` map to `vim.diagnostic.jump()` with `{count=-1}` and
+ `vim.diagnostic.jump()` with `{count=1}`, respectively.
* `<C-W>d` maps to `vim.diagnostic.open_float()`.
[lsp-config]: https://neovim.io/doc/user/lsp.html#lsp-config