mirror of
https://github.com/neovim/neovim.git
synced 2025-12-07 23:22:39 +00:00
docs: misc, help tags for neovim.io searches #31428
Problem: Various keywords are commonly searched-for on https://neovim.io, but don't have help tags. Solution: Add help tags. fix #31327
This commit is contained in:
14
runtime/lua/vim/_meta/api.lua
generated
14
runtime/lua/vim/_meta/api.lua
generated
@@ -1654,7 +1654,7 @@ function vim.api.nvim_notify(msg, log_level, opts) end
|
||||
--- Open a terminal instance in a buffer
|
||||
---
|
||||
--- By default (and currently the only option) the terminal will not be
|
||||
--- connected to an external process. Instead, input send on the channel
|
||||
--- connected to an external process. Instead, input sent on the channel
|
||||
--- will be echoed directly by the terminal. This is useful to display
|
||||
--- ANSI terminal sequences returned as part of a rpc message, or similar.
|
||||
---
|
||||
@@ -1665,6 +1665,18 @@ function vim.api.nvim_notify(msg, log_level, opts) end
|
||||
--- Then `nvim_chan_send()` can be called immediately to process sequences
|
||||
--- in a virtual terminal having the intended size.
|
||||
---
|
||||
--- Example: this `TermHl` command can be used to display and highlight raw ANSI termcodes, so you
|
||||
--- can use Nvim as a "scrollback pager" (for terminals like kitty): [terminal-scrollback-pager]()
|
||||
---
|
||||
--- ```lua
|
||||
--- vim.api.nvim_create_user_command('TermHl', function()
|
||||
--- local b = vim.api.nvim_create_buf(false, true)
|
||||
--- local chan = vim.api.nvim_open_term(b, {})
|
||||
--- vim.api.nvim_chan_send(chan, table.concat(vim.api.nvim_buf_get_lines(0, 0, -1, false), '\n'))
|
||||
--- vim.api.nvim_win_set_buf(0, b)
|
||||
--- end, { desc = 'Highlights ANSI termcodes in curbuf' })
|
||||
--- ```
|
||||
---
|
||||
--- @param buffer integer the buffer to use (expected to be empty)
|
||||
--- @param opts vim.api.keyset.open_term Optional parameters.
|
||||
--- - on_input: Lua callback for input sent, i e keypresses in terminal
|
||||
|
||||
13
runtime/lua/vim/_meta/vimfn.lua
generated
13
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -4928,7 +4928,7 @@ function vim.fn.jobstop(id) end
|
||||
---
|
||||
--- @param jobs integer[]
|
||||
--- @param timeout? integer
|
||||
--- @return any
|
||||
--- @return integer[]
|
||||
function vim.fn.jobwait(jobs, timeout) end
|
||||
|
||||
--- Join the items in {list} together into one String.
|
||||
@@ -7244,9 +7244,9 @@ function vim.fn.round(expr) end
|
||||
---
|
||||
--- @param channel integer
|
||||
--- @param event string
|
||||
--- @param args? any
|
||||
--- @param ... any
|
||||
--- @return any
|
||||
function vim.fn.rpcnotify(channel, event, args) end
|
||||
function vim.fn.rpcnotify(channel, event, ...) end
|
||||
|
||||
--- Sends a request to {channel} to invoke {method} via
|
||||
--- |RPC| and blocks until a response is received.
|
||||
@@ -7256,9 +7256,9 @@ function vim.fn.rpcnotify(channel, event, args) end
|
||||
---
|
||||
--- @param channel integer
|
||||
--- @param method string
|
||||
--- @param args? any
|
||||
--- @param ... any
|
||||
--- @return any
|
||||
function vim.fn.rpcrequest(channel, method, args) end
|
||||
function vim.fn.rpcrequest(channel, method, ...) end
|
||||
|
||||
--- @deprecated
|
||||
--- Deprecated. Replace >vim
|
||||
@@ -9328,6 +9328,7 @@ function vim.fn.str2float(string, quoted) end
|
||||
--- and exists only for backwards-compatibility.
|
||||
--- With UTF-8 composing characters are handled properly: >vim
|
||||
--- echo str2list("á") " returns [97, 769]
|
||||
--- <
|
||||
---
|
||||
--- @param string string
|
||||
--- @param utf8? boolean
|
||||
@@ -10870,7 +10871,7 @@ function vim.fn.winheight(nr) end
|
||||
--- <
|
||||
---
|
||||
--- @param tabnr? integer
|
||||
--- @return any
|
||||
--- @return any[]
|
||||
function vim.fn.winlayout(tabnr) end
|
||||
|
||||
--- The result is a Number, which is the screen line of the cursor
|
||||
|
||||
Reference in New Issue
Block a user