aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2024-04-26 13:16:12 -0500
committerGitHub <noreply@github.com>2024-04-26 13:16:12 -0500
commit73034611c25d16df5e87c8afb2d339a03a91bd0d (patch)
tree9280e1fb5476a61ebf90073f24ec244ef2204f01 /runtime/doc
parent3a7c30dc93b9b903ff8591c43689c3bdcb4761de (diff)
downloadrneovim-73034611c25d16df5e87c8afb2d339a03a91bd0d.tar.gz
rneovim-73034611c25d16df5e87c8afb2d339a03a91bd0d.tar.bz2
rneovim-73034611c25d16df5e87c8afb2d339a03a91bd0d.zip
feat(diagnostic): add default mappings for diagnostics (#16230)
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/news.txt4
-rw-r--r--runtime/doc/tagsrch.txt12
-rw-r--r--runtime/doc/vim_diff.txt3
3 files changed, 19 insertions, 0 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index edf0b8fb7c..12d170612c 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -412,6 +412,10 @@ The following changes to existing APIs or features add new behavior.
• |crr| in Normal and Visual mode maps to |vim.lsp.buf.code_action()|.
• "gr" in Normal mode maps to |vim.lsp.buf.references()| |gr-default|
• |i_CTRL-S| in Insert mode maps to |vim.lsp.buf.signature_help()|
+ • "]d" and "[d" in Normal mode map to |vim.diagnostic.goto_next()| and
+ |vim.diagnostic.goto_prev()|, respectively. |]d-default| |[d-default|
+ • <C-W>d (and <C-W><C-D>) map to |vim.diagnostic.open_float()|
+ |CTRL-W_d-default|
• Automatic linting of treesitter query files (see |ft-query-plugin|).
Can be disabled via: >lua
vim.g.query_lint_on = {}
diff --git a/runtime/doc/tagsrch.txt b/runtime/doc/tagsrch.txt
index 6e53b5ebae..ef1654d365 100644
--- a/runtime/doc/tagsrch.txt
+++ b/runtime/doc/tagsrch.txt
@@ -780,9 +780,17 @@ CTRL-W i Open a new window, with the cursor on the first line
beginning of the file. If a count is given, the
count'th matching line is displayed.
+ *[d-default*
+ Mapped to |vim.diagnostic.goto_prev()| by default.
+ |default-mappings|
+
*]d*
]d like "[d", but start at the current cursor position.
+ *]d-default*
+ Mapped to |vim.diagnostic.goto_next()| by default.
+ |default-mappings|
+
*:ds* *:dsearch*
:[range]ds[earch][!] [count] [/]string[/]
Like "[d" and "]d", but search in [range] lines
@@ -829,6 +837,10 @@ CTRL-W d Open a new window, with the cursor on the first
beginning of the file. If a count is given, the
count'th matching line is jumped to.
+ *CTRL-W_d-default*
+ Mapped to |vim.diagnostic.open_float()| by default.
+ |default-mappings|
+
*:dsp* *:dsplit*
:[range]dsp[lit][!] [count] [/]string[/]
Like "CTRL-W d", but search in [range] lines
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index c767c71523..4edcec36a2 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -141,6 +141,9 @@ of these in your config by simply removing the mapping, e.g. ":unmap Y".
- |crr|
- gr |gr-default|
- <C-S> |i_CTRL-S|
+- ]d |]d-default|
+- [d |[d-default|
+- <C-W>d |CTRL-W_d-default|
- Nvim LSP client defaults |lsp-defaults|
- K |K-lsp-default|