mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 22:35:33 +00:00
docs: api, lsp, messages, intro #38327
This commit is contained in:
72
runtime/lua/vim/_meta/options.lua
generated
72
runtime/lua/vim/_meta/options.lua
generated
@@ -3029,7 +3029,7 @@ vim.go.fs = vim.go.fsync
|
||||
--- This is a scanf-like string that uses the same format as the
|
||||
--- 'errorformat' option: see `errorformat`.
|
||||
---
|
||||
--- If ripgrep ('grepprg') is available, this option defaults to `%f:%l:%c:%m`.
|
||||
--- Defaults to "%f:%l:%c:%m" if ripgrep ('grepprg') is available.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.grepformat = "%f:%l:%m,%f:%l%m,%f %l%m"
|
||||
@@ -3039,28 +3039,34 @@ vim.bo.gfm = vim.bo.grepformat
|
||||
vim.go.grepformat = vim.o.grepformat
|
||||
vim.go.gfm = vim.go.grepformat
|
||||
|
||||
--- Program to use for the `:grep` command. This option may contain '%'
|
||||
--- and '#' characters, which are expanded like when used in a command-
|
||||
--- line. The placeholder "$*" is allowed to specify where the arguments
|
||||
--- will be included. Environment variables are expanded `:set_env`. See
|
||||
--- `option-backslash` about including spaces and backslashes.
|
||||
--- Program to use for the `:grep` command.
|
||||
--- Note: if you change this then you must also update 'grepformat'.
|
||||
---
|
||||
--- May contain "%" and "#" characters, are expanded per `cmdline-special`.
|
||||
--- The placeholder "$*" specifies where the arguments will be included.
|
||||
--- Environment variables are expanded `:set_env`. See `option-backslash`
|
||||
--- about including spaces and backslashes.
|
||||
---
|
||||
--- Special value: When 'grepprg' is set to "internal" the `:grep` command
|
||||
--- works like `:vimgrep`, `:lgrep` like `:lvimgrep`, `:grepadd` like
|
||||
--- `:vimgrepadd` and `:lgrepadd` like `:lvimgrepadd`.
|
||||
--- See also the section `:make_makeprg`, since most of the comments there
|
||||
--- apply equally to 'grepprg'.
|
||||
---
|
||||
--- See also `:make_makeprg`, most of the comments there apply to 'grepprg'.
|
||||
---
|
||||
--- Defaults to:
|
||||
--- - "rg --vimgrep -uu " if ripgrep is available (`:checkhealth`),
|
||||
--- - "grep -HIn $* /dev/null" on Unix,
|
||||
--- - "findstr /n $* nul" on Windows.
|
||||
---
|
||||
--- Ripgrep may perform additional filtering such as using .gitignore rules
|
||||
--- and skipping hidden files. This is disabled by default (via "-u") to
|
||||
--- more closely match the behaviour of standard grep.
|
||||
--- You can make ripgrep match Vim's case handling using the
|
||||
--- -i/--ignore-case and -S/--smart-case options. Handle `OptionSet` to
|
||||
--- dynamically update 'grepprg' when e.g. 'ignorecase' is changed.
|
||||
---
|
||||
--- This option cannot be set from a `modeline` or in the `sandbox`, for
|
||||
--- security reasons.
|
||||
--- This option defaults to:
|
||||
--- - `rg --vimgrep -uu ` if ripgrep is available (`:checkhealth`),
|
||||
--- - `grep -HIn $* /dev/null` on Unix,
|
||||
--- - `findstr /n $* nul` on Windows.
|
||||
--- Ripgrep can perform additional filtering such as using .gitignore rules
|
||||
--- and skipping hidden files. This is disabled by default (see the -u option)
|
||||
--- to more closely match the behaviour of standard grep.
|
||||
--- You can make ripgrep match Vim's case handling using the
|
||||
--- -i/--ignore-case and -S/--smart-case options.
|
||||
--- An `OptionSet` autocmd can be used to set it up to match automatically.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.grepprg = "grep -HIn $* /dev/null"
|
||||
@@ -4446,26 +4452,26 @@ vim.go.mis = vim.go.menuitems
|
||||
--- Option settings for outputting messages. It can consist of the
|
||||
--- following items. Items must be separated by a comma.
|
||||
---
|
||||
--- hit-enter Use a `hit-enter` prompt when the message is longer than
|
||||
--- 'cmdheight' size.
|
||||
---
|
||||
--- wait:{n} Instead of using a `hit-enter` prompt, simply wait for
|
||||
--- {n} milliseconds so that the user has a chance to read
|
||||
--- the message. The maximum value of {n} is 10000. Use
|
||||
--- 0 to disable the wait (but then the user may miss an
|
||||
--- important message).
|
||||
--- This item is ignored when "hit-enter" is present, but
|
||||
--- required when "hit-enter" is not present.
|
||||
---
|
||||
--- history:{n} Determines how many entries are remembered in the
|
||||
--- `:messages` history. The maximum value is 10000.
|
||||
--- Setting it to zero clears the message history.
|
||||
--- This item must always be present.
|
||||
--- progress:{s}
|
||||
--- Determines where to show progress messages.
|
||||
---
|
||||
--- hit-enter Use a `hit-enter` prompt when the message is longer than
|
||||
--- 'cmdheight' size.
|
||||
---
|
||||
--- progress:{s} Determines where to show progress messages.
|
||||
--- Valid values are:
|
||||
--- empty: progress messages are hidden in cmdline.
|
||||
--- "c": progress messages are shown in cmdline.
|
||||
--- - empty: Progress messages not shown in cmdline.
|
||||
--- - "c": Progress messages are shown in cmdline.
|
||||
---
|
||||
--- wait:{n} Deprecated with `ui2`.
|
||||
--- Instead of a `hit-enter` prompt, simply wait for {n}
|
||||
--- milliseconds so the user has a chance to read the
|
||||
--- message. Maximum {n} is 10000. Use 0 to disable the
|
||||
--- wait (user won't see any "hit-enter" messages).
|
||||
--- Ignored when "hit-enter" is present, but required when
|
||||
--- "hit-enter" is not present.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.messagesopt = "hit-enter,history:500,progress:c"
|
||||
|
||||
Reference in New Issue
Block a user