mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
docs: regenerate
This commit is contained in:
parent
056c464e8a
commit
2ebc28018e
@ -1353,6 +1353,11 @@ nvim_open_win({buffer}, {enter}, {config}) *nvim_open_win()*
|
||||
by character: [ {"+", "MyCorner"}, {"x",
|
||||
"MyBorder"} ]
|
||||
|
||||
• `noautocmd` : If true then no buffer-related
|
||||
autocommand events such as |BufEnter|,
|
||||
|BufLeave| or |BufWinEnter| may fire from
|
||||
calling this function.
|
||||
|
||||
Return: ~
|
||||
Window handle, or 0 on error
|
||||
|
||||
|
@ -1610,6 +1610,12 @@ apply_workspace_edit({workspace_edit})
|
||||
Parameters: ~
|
||||
{workspace_edit} (table) `WorkspaceEdit`
|
||||
|
||||
border_height({id}) *vim.lsp.util.border_height()*
|
||||
TODO: Documentation
|
||||
|
||||
border_width({id}) *vim.lsp.util.border_width()*
|
||||
TODO: Documentation
|
||||
|
||||
buf_clear_references({bufnr}) *vim.lsp.util.buf_clear_references()*
|
||||
Removes document highlights from a buffer.
|
||||
|
||||
|
@ -1505,12 +1505,14 @@ validate({opt}) *vim.validate()*
|
||||
|
||||
vim.validate{arg1={{'foo'}, 'table'}, arg2={'foo', 'string'}}
|
||||
=> NOP (success)
|
||||
|
||||
vim.validate{arg1={1, 'table'}}
|
||||
=> error('arg1: expected table, got number')
|
||||
|
||||
vim.validate{arg1={3, function(a) return (a % 2) == 0 end, 'even number'}}
|
||||
=> error('arg1: expected even number, got 3')
|
||||
<
|
||||
>
|
||||
vim.validate{arg1={1, 'table'}}
|
||||
=> error('arg1: expected table, got number')
|
||||
<
|
||||
>
|
||||
vim.validate{arg1={3, function(a) return (a % 2) == 0 end, 'even number'}}
|
||||
=> error('arg1: expected even number, got 3')
|
||||
<
|
||||
|
||||
Parameters: ~
|
||||
|
@ -469,9 +469,11 @@ Query:iter_matches({self}, {node}, {source}, {start}, {stop})
|
||||
for id, node in pairs(match) do
|
||||
local name = query.captures[id]
|
||||
-- `node` was captured by the `name` capture in the match
|
||||
|
||||
local node_data = metadata[id] -- Node level metadata
|
||||
|
||||
<
|
||||
>
|
||||
local node_data = metadata[id] -- Node level metadata
|
||||
<
|
||||
>
|
||||
... use the info here ...
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user