mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
docs: misc (#28837)
Co-authored-by: Danymat <d.danymat@gmail.com> Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: Jakub Okoński <jakub@okonski.org> Co-authored-by: John L. Villalovos <john@sodarock.com> Co-authored-by: Maria José Solano <majosolano99@gmail.com> Co-authored-by: Michaili K <git@michaili.dev> Co-authored-by: TheLeoP <eugenio2305@hotmail.com> Co-authored-by: Tobias Schmitz <tobiasschmitz2001@gmail.com> Co-authored-by: W20MC <157727813+W20MC@users.noreply.github.com> Co-authored-by: Will Hopkins <willothyh@gmail.com> Co-authored-by: Yifan Hu <141280278+b0ae989c@users.noreply.github.com> Co-authored-by: glepnir <glephunter@gmail.com> Co-authored-by: prljav <74116121+prljav@users.noreply.github.com>
This commit is contained in:
14
runtime/lua/vim/_meta/api.lua
generated
14
runtime/lua/vim/_meta/api.lua
generated
@ -276,14 +276,14 @@ function vim.api.nvim_buf_add_highlight(buffer, ns_id, hl_group, line, col_start
|
||||
--- @return boolean
|
||||
function vim.api.nvim_buf_attach(buffer, send_buffer, opts) end
|
||||
|
||||
--- call a function with buffer as temporary current buffer
|
||||
--- Call a function with buffer as temporary current buffer.
|
||||
---
|
||||
--- This temporarily switches current buffer to "buffer". If the current
|
||||
--- window already shows "buffer", the window is not switched If a window
|
||||
--- inside the current tabpage (including a float) already shows the buffer
|
||||
--- One of these windows will be set as current window temporarily. Otherwise
|
||||
--- a temporary scratch window (called the "autocmd window" for historical
|
||||
--- reasons) will be used.
|
||||
--- window already shows "buffer", the window is not switched. If a window
|
||||
--- inside the current tabpage (including a float) already shows the buffer,
|
||||
--- then one of these windows will be set as current window temporarily.
|
||||
--- Otherwise a temporary scratch window (called the "autocmd window" for
|
||||
--- historical reasons) will be used.
|
||||
---
|
||||
--- This is useful e.g. to call Vimscript functions that only work with the
|
||||
--- current buffer/window currently, like `termopen()`.
|
||||
@ -1953,7 +1953,7 @@ function vim.api.nvim_set_current_win(window) end
|
||||
---
|
||||
--- • on_win: called when starting to redraw a specific window.
|
||||
--- ```
|
||||
--- ["win", winid, bufnr, topline, botline]
|
||||
--- ["win", winid, bufnr, toprow, botrow]
|
||||
--- ```
|
||||
---
|
||||
--- • on_line: called for each buffer line being redrawn. (The
|
||||
|
Reference in New Issue
Block a user