neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 59542504b41dfddb6f26524fb4ce811e0f22a785
parent 46c4cbced567f5f05f2c95b91cd90084ea8b5528
Author: Jaehwang Jung <tomtomjhj@gmail.com>
Date:   Sun,  5 Mar 2023 01:47:30 +0900

docs(highlight): fix type annotations (#22272)


Diffstat:
Mruntime/lua/vim/highlight.lua | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/runtime/lua/vim/highlight.lua b/runtime/lua/vim/highlight.lua @@ -36,12 +36,12 @@ end --- Highlight range between two positions --- ----@param bufnr number of buffer to apply highlighting to ----@param ns namespace to add highlight to ----@param higroup highlight group to use for highlighting ----@param start first position (tuple {line,col}) ----@param finish second position (tuple {line,col}) ----@param opts table with options: +---@param bufnr integer Buffer number to apply highlighting to +---@param ns integer Namespace to add highlight to +---@param higroup string Highlight group to use for highlighting +---@param start { [1]: integer, [2]: integer } Start position {line, col} +---@param finish { [1]: integer, [2]: integer } Finish position {line, col} +---@param opts table|nil Optional parameters -- - regtype type of range (see |setreg()|, default charwise) -- - inclusive boolean indicating whether the range is end-inclusive (default false) -- - priority number indicating priority of highlight (default priorities.user) @@ -84,7 +84,7 @@ local yank_timer --- customize conditions (here: do not highlight a visual selection) via --- au TextYankPost * lua vim.highlight.on_yank {on_visual=false} --- --- @param opts table with options controlling the highlight: +-- @param opts table|nil Optional parameters -- - higroup highlight group for yanked region (default "IncSearch") -- - timeout time in ms before highlight is cleared (default 150) -- - on_macro highlight when executing macro (default false)