docs: various fixes (#28208)

Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Co-authored-by: Famiu Haque <famiuhaque@proton.me>
Co-authored-by: Gregory Anders <greg@gpanders.com>
Co-authored-by: Guilherme Soares <guilhermesoares1970@gmail.com>
Co-authored-by: Jannik Buhr <jannik.m.buhr@gmail.com>
Co-authored-by: thomaswuhoileong <72001875+thomaswuhoileong@users.noreply.github.com>
Co-authored-by: tom-anders <13141438+tom-anders@users.noreply.github.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
dundargoc
2024-04-30 01:04:42 +02:00
committed by GitHub
parent b7e5769132
commit 234b5f6701
14 changed files with 32 additions and 22 deletions

View File

@@ -80,7 +80,7 @@ local function make_comment_check(parts)
-- <possible whitespace> <left> <anything> <right> <possible whitespace>
local nonblank_regex = '^%s-' .. l_esc .. '.*' .. r_esc .. '%s-$'
-- Commented blank line can have any amoung of whitespace around parts
-- Commented blank line can have any amount of whitespace around parts
local blank_regex = '^%s-' .. vim.trim(l_esc) .. '%s*' .. vim.trim(r_esc) .. '%s-$'
return function(line)

View File

@@ -974,7 +974,7 @@ vim.bo.comments = vim.o.comments
vim.bo.com = vim.bo.comments
--- A template for a comment. The "%s" in the value is replaced with the
--- comment text. For example, C uses "/*%s*/". Currently only used to
--- comment text. For example, C uses "/*%s*/". Used for `commenting` and to
--- add markers for folding, see `fold-marker`.
---
--- @type string

View File

@@ -6583,7 +6583,7 @@ function vim.fn.prevnonblank(lnum) end
---
--- @param fmt any
--- @param expr1? any
--- @return any
--- @return string
function vim.fn.printf(fmt, expr1) end
--- Returns the effective prompt text for buffer {buf}. {buf} can

View File

@@ -54,9 +54,10 @@ vim.v.cmdbang = ...
--- @type string
vim.v.collate = ...
--- Dictionary containing the most recent `complete-items` after
--- `CompleteDone`. Empty if the completion failed, or after
--- leaving and re-entering insert mode.
--- Dictionary containing the `complete-items` for the most
--- recently completed word after `CompleteDone`. Empty if the
--- completion failed, or after leaving and re-entering insert
--- mode.
--- Note: Plugins can modify the value to emulate the builtin
--- `CompleteDone` event behavior.
--- @type any

View File

@@ -12,7 +12,7 @@ local M = {}
--- emulator supports the XTGETTCAP sequence.
---
--- @param caps string|table A terminal capability or list of capabilities to query
--- @param cb fun(cap:string, found:bool, seq:string?) Callback function which is called for
--- @param cb fun(cap:string, found:boolean, seq:string?) Callback function which is called for
--- each capability in {caps}. {found} is set to true if the capability was found or false
--- otherwise. {seq} is the control sequence for the capability if found, or nil for
--- boolean capabilities.