From ba00e3fa3dcb1acd60a7e5ab7cbac4c67491f255 Mon Sep 17 00:00:00 2001 From: guru245 Date: Sat, 19 Apr 2025 15:01:38 +0900 Subject: 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. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') 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. * `d` maps to `vim.diagnostic.open_float()`. [lsp-config]: https://neovim.io/doc/user/lsp.html#lsp-config -- cgit v1.2.3-70-g09d2