mirror of
https://github.com/neovim/neovim.git
synced 2026-05-04 21:15:09 +00:00
docs: misc
Co-authored-by: Axel <axelhjq@gmail.com> Co-authored-by: Colin Kennedy <colinvfx@gmail.com> Co-authored-by: Daiki Noda <sys9kdr@users.noreply.github.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: Jean-Jacq du Plessis <1030058+jj-du-plessis@users.noreply.github.com> Co-authored-by: Juan Giordana <juangiordana@gmail.com> Co-authored-by: Lincoln Wallace <locnnil0@gmail.com> Co-authored-by: Matti Hellström <hellstrom@scm.com> Co-authored-by: Steven Locorotondo <steven.locorotondo@justeattakeaway.com> Co-authored-by: Yochem van Rosmalen <git@yochem.nl> Co-authored-by: glepnir <glephunter@gmail.com> Co-authored-by: ifish <fishioon@live.com>
This commit is contained in:
@@ -93,7 +93,7 @@ local utfs = {
|
||||
---
|
||||
--- -- Runs synchronously:
|
||||
--- local obj = vim.system({'echo', 'hello'}, { text = true }):wait()
|
||||
--- -- { code = 0, signal = 0, stdout = 'hello', stderr = '' }
|
||||
--- -- { code = 0, signal = 0, stdout = 'hello\n', stderr = '' }
|
||||
---
|
||||
--- ```
|
||||
---
|
||||
|
||||
4
runtime/lua/vim/_meta/options.lua
generated
4
runtime/lua/vim/_meta/options.lua
generated
@@ -1087,8 +1087,8 @@ vim.go.cia = vim.go.completeitemalign
|
||||
--- "menu" or "menuone". No effect if "longest" is present.
|
||||
---
|
||||
--- noselect Same as "noinsert", except that no menu item is
|
||||
--- pre-selected. If both "noinsert" and "noselect" are present,
|
||||
--- "noselect" has precedence.
|
||||
--- pre-selected. If both "noinsert" and "noselect" are
|
||||
--- present, "noselect" has precedence.
|
||||
---
|
||||
--- fuzzy Enable `fuzzy-matching` for completion candidates. This
|
||||
--- allows for more flexible and intuitive matching, where
|
||||
|
||||
2
runtime/lua/vim/_meta/vimfn.lua
generated
2
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -7537,7 +7537,7 @@ function vim.fn.screenstring(row, col) end
|
||||
--- @param stopline? integer
|
||||
--- @param timeout? integer
|
||||
--- @param skip? string|function
|
||||
--- @return any
|
||||
--- @return integer
|
||||
function vim.fn.search(pattern, flags, stopline, timeout, skip) end
|
||||
|
||||
--- Get or update the last search count, like what is displayed
|
||||
|
||||
@@ -768,7 +768,7 @@ end
|
||||
---
|
||||
---
|
||||
--- A special interface |vim.opt| exists for conveniently interacting with list-
|
||||
--- and map-style option from Lua: It allows accessing them as Lua tables and
|
||||
--- and map-style options from Lua: It allows accessing them as Lua tables and
|
||||
--- offers object-oriented method for adding and removing entries.
|
||||
---
|
||||
--- Examples: ~
|
||||
|
||||
@@ -1389,7 +1389,7 @@ end
|
||||
--- |LspAttach| autocommand. Example:
|
||||
---
|
||||
--- ```lua
|
||||
--- vim.api.nvim_create_autocommand('LspAttach', {
|
||||
--- vim.api.nvim_create_autocmd('LspAttach', {
|
||||
--- callback = function(args)
|
||||
--- local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
--- if client:supports_method('textDocument/foldingRange') then
|
||||
|
||||
@@ -208,7 +208,7 @@ end
|
||||
|
||||
--- @param uri string
|
||||
--- @param client_id? integer
|
||||
--- @param diagnostics vim.Diagnostic[]
|
||||
--- @param diagnostics lsp.Diagnostic[]
|
||||
--- @param is_pull boolean
|
||||
local function handle_diagnostics(uri, client_id, diagnostics, is_pull)
|
||||
local fname = vim.uri_to_fname(uri)
|
||||
|
||||
Reference in New Issue
Block a user