Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
chore: auto-generated types for Neovim nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 8, 2023
1 parent 749f933 commit ff858a9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
10 changes: 8 additions & 2 deletions types/nightly/vim.fn.1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,8 @@ function vim.fn.screencol() end
-- as if 'conceallevel' is zero. You can set the cursor to the
-- right position and use |screencol()| to get the value with
-- |conceal| taken into account.
-- If the position is in a closed fold the screen position of the
-- first character is returned, {col} is not used.
-- Returns an empty Dict if {winid} is invalid.
--
-- Can also be used as a |method|:
Expand Down Expand Up @@ -4719,10 +4721,14 @@ function vim.fn.winrestview(dict) end
-- The return value includes:
-- lnum cursor line number
-- col cursor column (Note: the first column
-- zero, as opposed to what getpos()
-- zero, as opposed to what |getcurpos()|
-- returns)
-- coladd cursor column offset for 'virtualedit'
-- curswant column for vertical movement
-- curswant column for vertical movement (Note:
-- the first column is zero, as opposed
-- to what |getcurpos()| returns). After
-- |$| command it will be a very large
-- number equal to |v:maxcol|.
-- topline first line in the window
-- topfill filler lines, only in diff mode
-- leftcol first column displayed; only used when
Expand Down
14 changes: 9 additions & 5 deletions types/nightly/vim.fn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2837,6 +2837,9 @@ function vim.fn.getcharmod() end
-- Get the position for String {expr}. Same as |getpos()| but the
-- column number in the returned List is a character index
-- instead of a byte index.
-- If |getpos()| returns a very large column number, equal to
-- |v:maxcol|, then getcharpos() will return the character index
-- of the last character.
--
-- Example:
-- With the cursor on '세' in line 5 with text "여보세요":
Expand Down Expand Up @@ -3031,10 +3034,11 @@ function vim.fn.getcmdwintype() end
function vim.fn.getcompletion(pat, type, filtered) end

-- Get the position of the cursor. This is like getpos('.'), but
-- includes an extra "curswant" in the list:
-- includes an extra "curswant" item in the list:
-- [0, lnum, col, off, curswant] ~
-- The "curswant" number is the preferred column when moving the
-- cursor vertically. Also see |getcursorcharpos()| and
-- cursor vertically. After |$| command it will be a very large
-- number equal to |v:maxcol|. Also see |getcursorcharpos()| and
-- |getpos()|.
-- The first "bufnum" item is always zero. The byte position of
-- the cursor is returned in "col". To get the character
Expand Down Expand Up @@ -3427,12 +3431,12 @@ function vim.fn.getpid() end
-- character.
-- Note that for '< and '> Visual mode matters: when it is "V"
-- (visual line mode) the column of '< is zero and the column of
-- '> is a large number.
-- '> is a large number equal to |v:maxcol|.
-- The column number in the returned List is the byte position
-- within the line. To get the character position in the line,
-- use |getcharpos()|.
-- The column number can be very large, e.g. 2147483647, in which
-- case it means "after the end of the line".
-- A very large column number equal to |v:maxcol| can be returned,
-- in which case it means "after the end of the line".
-- If {expr} is invalid, returns a list with all zeros.
-- This can be used to save and restore the position of a mark:
-- ```vim
Expand Down

0 comments on commit ff858a9

Please sign in to comment.