commit 21187e1c73e6887ce407164c98320555374387a9
parent a3fba5cafcf124946ea65a68fc1b9dfbeb197525
Author: Justin M. Keyes <justinkz@gmail.com>
Date: Mon, 5 Jun 2023 02:19:05 -0700
defaults: shortmess+=C #23907
Problem:
Completion messages such as "scanning tags" are noisy and generally not
useful on most systems. Most users probably aren't aware that this is
configurable.
Solution:
Set `shortmess+=C`.
Diffstat:
4 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
@@ -61,12 +61,6 @@ The following new APIs or features were added.
• Added |vim.keycode()| for translating keycodes in a string.
-• Added automatic linting of treesitter query files (see |ft-query-plugin|).
- Automatic linting can be turned off via >lua
- vim.g.query_lint_on = {}
-<
-• Enabled treesitter highlighting for treesitter query files by default.
-
• Added |vim.treesitter.query.omnifunc()| for treesitter query files (set by
default).
@@ -96,6 +90,13 @@ The following changes to existing APIs or features add new behavior.
• vim.diagnostic.config() now accepts a function for the virtual_text.prefix
option, which allows for rendering e.g., diagnostic severities differently.
+• Defaults:
+ • 'shortmess' includes the "C" flag.
+ • Automatic linting of treesitter query files (see |ft-query-plugin|).
+ Can be disabled via: >lua
+ vim.g.query_lint_on = {}
+< • Enabled treesitter highlighting for treesitter query files.
+
• The `workspace/didChangeWatchedFiles` LSP client capability is now enabled
by default.
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
@@ -5393,7 +5393,7 @@ A jump table for the options with a short description can be found at |Q_op|.
function to get the effective shiftwidth value.
*'shortmess'* *'shm'*
-'shortmess' 'shm' string (default "filnxtToOF")
+'shortmess' 'shm' string (default "filnxtToOCF")
global
This option helps to avoid all the |hit-enter| prompts caused by file
messages, for example with CTRL-G, and to avoid some other messages.
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
@@ -57,7 +57,7 @@ Defaults *nvim-defaults*
- 'nrformats' defaults to "bin,hex"
- 'ruler' is enabled
- 'sessionoptions' includes "unix,slash", excludes "options"
-- 'shortmess' includes "F", excludes "S"
+- 'shortmess' includes "CF", excludes "S"
- 'showcmd' is enabled
- 'sidescroll' defaults to 1
- 'smarttab' is enabled
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
@@ -2233,7 +2233,7 @@ return {
short_desc=N_("list of flags, reduce length of messages"),
type='string', list='flags', scope={'global'},
varname='p_shm',
- defaults={if_true="filnxtToOF"},
+ defaults={if_true="filnxtToOCF"},
cb='did_set_shortmess'
},
{