mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
docs: misc
This commit is contained in:
9
runtime/lua/vim/_meta/api.lua
generated
9
runtime/lua/vim/_meta/api.lua
generated
@ -485,10 +485,7 @@ function vim.api.nvim_buf_get_offset(buffer, index) end
|
||||
--- @return any
|
||||
function vim.api.nvim_buf_get_option(buffer, name) end
|
||||
|
||||
--- Gets a range from the buffer.
|
||||
---
|
||||
--- This differs from `nvim_buf_get_lines()` in that it allows retrieving only
|
||||
--- portions of a line.
|
||||
--- Gets a range from the buffer (may be partial lines, unlike `nvim_buf_get_lines()`).
|
||||
---
|
||||
--- Indexing is zero-based. Row indices are end-inclusive, and column indices
|
||||
--- are end-exclusive.
|
||||
@ -698,7 +695,7 @@ function vim.api.nvim_buf_set_keymap(buffer, mode, lhs, rhs, opts) end
|
||||
---
|
||||
--- Indexing is zero-based, end-exclusive. Negative indices are interpreted
|
||||
--- as length+1+index: -1 refers to the index past the end. So to change
|
||||
--- or delete the last element use start=-2 and end=-1.
|
||||
--- or delete the last line use start=-2 and end=-1.
|
||||
---
|
||||
--- To insert lines at a given index, set `start` and `end` to the same index.
|
||||
--- To delete a range of lines, set `replacement` to an empty array.
|
||||
@ -2089,7 +2086,7 @@ function vim.api.nvim_set_current_line(line) end
|
||||
--- @param tabpage integer `tab-ID` to focus
|
||||
function vim.api.nvim_set_current_tabpage(tabpage) end
|
||||
|
||||
--- Sets the current window. Also changes tabpage, if necessary.
|
||||
--- Sets the current window (and tabpage, implicitly).
|
||||
---
|
||||
--- @param window integer `window-ID` to focus
|
||||
function vim.api.nvim_set_current_win(window) end
|
||||
|
Reference in New Issue
Block a user