docs: clipboard, eval #33328

This commit is contained in:
Justin M. Keyes
2025-04-12 10:56:28 -07:00
committed by GitHub
parent b8e5fd51fd
commit 7384983721
7 changed files with 143 additions and 148 deletions

View File

@@ -7834,13 +7834,13 @@ vim.wo.winbl = vim.wo.winblend
--- Defines the default border style of floating windows. The default value
--- is empty, which is equivalent to "none". Valid values include:
--- - "bold": Bold line box.
--- - "double": Double-line box.
--- - "none": No border.
--- - "single": A single line box.
--- - "double": A double line box.
--- - "rounded": Like "single", but with rounded corners ("╭" etc.).
--- - "shadow": Drop shadow effect, by blending with the background.
--- - "single": Single-line box.
--- - "solid": Adds padding by a single whitespace cell.
--- - "shadow": A drop shadow effect by blending with the background.
--- - "bold": A bold line box.
---
--- @type ''|'double'|'single'|'shadow'|'rounded'|'solid'|'bold'|'none'
vim.o.winborder = ""

View File

@@ -10878,14 +10878,13 @@ function vim.fn.wincol() end
--- @return string
function vim.fn.windowsversion() end
--- The result is a Number, which is the height of window {nr}.
--- {nr} can be the window number or the |window-ID|.
--- When {nr} is zero, the height of the current window is
--- returned. When window {nr} doesn't exist, -1 is returned.
--- An existing window always has a height of zero or more.
--- This excludes any window toolbar line.
--- Gets the height of |window-ID| {nr} (zero for "current
--- window"), excluding any 'winbar' and 'statusline'. Returns -1
--- if window {nr} doesn't exist. An existing window always has
--- a height of zero or more.
---
--- Examples: >vim
--- echo "The current window has " .. winheight(0) .. " lines."
--- echo "Current window has " .. winheight(0) .. " lines."
--- <
---
--- @param nr integer
@@ -11037,18 +11036,21 @@ function vim.fn.winrestview(dict) end
--- @return vim.fn.winsaveview.ret
function vim.fn.winsaveview() end
--- The result is a Number, which is the width of window {nr}.
--- {nr} can be the window number or the |window-ID|.
--- When {nr} is zero, the width of the current window is
--- returned. When window {nr} doesn't exist, -1 is returned.
--- An existing window always has a width of zero or more.
--- Examples: >vim
--- echo "The current window has " .. winwidth(0) .. " columns."
--- Gets the width of |window-ID| {nr} (zero for "current
--- window"), including columns (|sign-column|, 'statuscolumn',
--- etc.). Returns -1 if window {nr} doesn't exist. An existing
--- window always has a width of zero or more.
---
--- Example: >vim
--- echo "Current window has " .. winwidth(0) .. " columns."
--- if winwidth(0) <= 50
--- 50 wincmd |
--- endif
--- <For getting the terminal or screen size, see the 'columns'
--- option.
--- <
--- To get the buffer "viewport", use |getwininfo()|: >vim
--- :echo getwininfo(win_getid())[0].width - getwininfo(win_getid())[0].textoff
--- <
--- To get the Nvim screen size, see the 'columns' option.
---
--- @param nr integer
--- @return integer