docs: misc (#30914)

Co-authored-by: Ernie Rael <errael@raelity.com>
Co-authored-by: Famiu Haque <famiuhaque@proton.me>
Co-authored-by: Jade <spacey-sooty@proton.me>
Co-authored-by: glepnir <glephunter@gmail.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
dundargoc
2024-11-09 01:10:56 +01:00
committed by GitHub
parent ad3472e291
commit 5a27d02584
14 changed files with 32 additions and 33 deletions

View File

@@ -12,6 +12,7 @@
- To build on Windows, see the [Building on Windows](#building-on-windows) section. _MSVC (Visual Studio) is recommended._ - To build on Windows, see the [Building on Windows](#building-on-windows) section. _MSVC (Visual Studio) is recommended._
4. `sudo make install` 4. `sudo make install`
- Default install location is `/usr/local` - Default install location is `/usr/local`
- On Debian/Ubuntu, instead of `sudo make install`, you can try `cd build && cpack -G DEB && sudo dpkg -i nvim-linux64.deb` to build DEB-package and install it. This helps ensure clean removal of installed files. Note: This is an unsupported, "best-effort" feature of the Nvim build.
**Notes**: **Notes**:
- From the repository's root directory, running `make` will download and build all the needed dependencies and put the `nvim` executable in `build/bin`. - From the repository's root directory, running `make` will download and build all the needed dependencies and put the `nvim` executable in `build/bin`.

View File

@@ -662,8 +662,8 @@ nvim_echo({chunks}, {history}, {opts}) *nvim_echo()*
be omitted for no highlight. be omitted for no highlight.
• {history} if true, add to |message-history|. • {history} if true, add to |message-history|.
• {opts} Optional parameters. • {opts} Optional parameters.
• verbose: Message was printed as a result of 'verbose' • verbose: Message is printed as a result of 'verbose'
option if Nvim was invoked with -V3log_file, the message option. If Nvim was invoked with -V3log_file, the message
will be redirected to the log_file and suppressed from will be redirected to the log_file and suppressed from
direct output. direct output.

View File

@@ -959,7 +959,7 @@ charcol({expr} [, {winid}]) *charcol()*
< <
Parameters: ~ Parameters: ~
• {expr} (`string|integer[]`) • {expr} (`string|any[]`)
• {winid} (`integer?`) • {winid} (`integer?`)
Return: ~ Return: ~
@@ -1100,7 +1100,7 @@ col({expr} [, {winid}]) *col()*
< <
Parameters: ~ Parameters: ~
• {expr} (`string|integer[]`) • {expr} (`string|any[]`)
• {winid} (`integer?`) • {winid} (`integer?`)
Return: ~ Return: ~
@@ -11611,7 +11611,7 @@ virtcol({expr} [, {list} [, {winid}]]) *virtcol()*
< <
Parameters: ~ Parameters: ~
• {expr} (`string|integer[]`) • {expr} (`string|any[]`)
• {list} (`boolean?`) • {list} (`boolean?`)
• {winid} (`integer?`) • {winid} (`integer?`)

View File

@@ -536,7 +536,7 @@ CTRL-O in Insert mode you get a beep but you are still in Insert mode, type
Select *5 ^O ^G *6 -- -- -- Select *5 ^O ^G *6 -- -- --
Insert <Esc> -- -- <Insert> -- -- Insert <Esc> -- -- <Insert> -- --
Replace <Esc> -- -- <Insert> -- -- Replace <Esc> -- -- <Insert> -- --
Command-line `*3` -- -- :start -- -- Command-line *3 -- -- :start -- --
Ex :vi -- -- -- -- -- Ex :vi -- -- -- -- --
-- not possible -- not possible

View File

@@ -13,10 +13,10 @@ Supported platforms *supported-platforms*
`System` `Tier` `Versions` `Tested versions` `System` `Tier` `Versions` `Tested versions`
Linux 1 >= 2.6.32, glibc >= 2.12 Ubuntu 24.04 Linux 1 >= 2.6.32, glibc >= 2.12 Ubuntu 24.04
macOS (Intel) 1 >= 11 macOS 12 macOS (Intel) 1 >= 11 macOS 13
macOS (M1) 1 >= 11 macOS 15 macOS (M1) 1 >= 11 macOS 15
Windows 64-bit 1 >= Windows 10 Version 1809 Windows Server 2022 Windows 64-bit 1 >= Windows 10 Version 1809 Windows Server 2022
FreeBSD 1 >= 10 FreeBSD 13 FreeBSD 1 >= 10 FreeBSD 14
OpenBSD 2 >= 7 OpenBSD 2 >= 7
MinGW 2 MinGW-w64 MinGW 2 MinGW-w64
Windows 64-bit 3 < Windows 10 Version 1809 Windows 64-bit 3 < Windows 10 Version 1809

View File

@@ -1110,8 +1110,8 @@ function vim.api.nvim_del_var(name) end
--- can be omitted for no highlight. --- can be omitted for no highlight.
--- @param history boolean if true, add to `message-history`. --- @param history boolean if true, add to `message-history`.
--- @param opts vim.api.keyset.echo_opts Optional parameters. --- @param opts vim.api.keyset.echo_opts Optional parameters.
--- - verbose: Message was printed as a result of 'verbose' option --- - verbose: Message is printed as a result of 'verbose' option.
--- if Nvim was invoked with -V3log_file, the message will be --- If Nvim was invoked with -V3log_file, the message will be
--- redirected to the log_file and suppressed from direct output. --- redirected to the log_file and suppressed from direct output.
function vim.api.nvim_echo(chunks, history, opts) end function vim.api.nvim_echo(chunks, history, opts) end

View File

@@ -828,7 +828,7 @@ function vim.fn.charclass(string) end
--- echo col('.') " returns 7 --- echo col('.') " returns 7
--- < --- <
--- ---
--- @param expr string|integer[] --- @param expr string|any[]
--- @param winid? integer --- @param winid? integer
--- @return integer --- @return integer
function vim.fn.charcol(expr, winid) end function vim.fn.charcol(expr, winid) end
@@ -956,7 +956,7 @@ function vim.fn.clearmatches(win) end
--- imap <F2> <Cmd>echo col(".").."\n"<CR> --- imap <F2> <Cmd>echo col(".").."\n"<CR>
--- < --- <
--- ---
--- @param expr string|integer[] --- @param expr string|any[]
--- @param winid? integer --- @param winid? integer
--- @return integer --- @return integer
function vim.fn.col(expr, winid) end function vim.fn.col(expr, winid) end
@@ -10546,7 +10546,7 @@ function vim.fn.values(dict) end
--- echo max(map(range(1, line('$')), "virtcol([v:val, '$'])")) --- echo max(map(range(1, line('$')), "virtcol([v:val, '$'])"))
--- < --- <
--- ---
--- @param expr string|integer[] --- @param expr string|any[]
--- @param list? boolean --- @param list? boolean
--- @param winid? integer --- @param winid? integer
--- @return any --- @return any

View File

@@ -781,8 +781,8 @@ void nvim_set_vvar(String name, Object value, Error *err)
/// can be omitted for no highlight. /// can be omitted for no highlight.
/// @param history if true, add to |message-history|. /// @param history if true, add to |message-history|.
/// @param opts Optional parameters. /// @param opts Optional parameters.
/// - verbose: Message was printed as a result of 'verbose' option /// - verbose: Message is printed as a result of 'verbose' option.
/// if Nvim was invoked with -V3log_file, the message will be /// If Nvim was invoked with -V3log_file, the message will be
/// redirected to the log_file and suppressed from direct output. /// redirected to the log_file and suppressed from direct output.
void nvim_echo(Array chunks, Boolean history, Dict(echo_opts) *opts, Error *err) void nvim_echo(Array chunks, Boolean history, Dict(echo_opts) *opts, Error *err)
FUNC_API_SINCE(7) FUNC_API_SINCE(7)

View File

@@ -1137,7 +1137,7 @@ M.funcs = {
]=], ]=],
name = 'charcol', name = 'charcol',
params = { { 'expr', 'string|integer[]' }, { 'winid', 'integer' } }, params = { { 'expr', 'string|any[]' }, { 'winid', 'integer' } },
returns = 'integer', returns = 'integer',
signature = 'charcol({expr} [, {winid}])', signature = 'charcol({expr} [, {winid}])',
}, },
@@ -1296,7 +1296,7 @@ M.funcs = {
]=], ]=],
name = 'col', name = 'col',
params = { { 'expr', 'string|integer[]' }, { 'winid', 'integer' } }, params = { { 'expr', 'string|any[]' }, { 'winid', 'integer' } },
returns = 'integer', returns = 'integer',
signature = 'col({expr} [, {winid}])', signature = 'col({expr} [, {winid}])',
}, },
@@ -12684,7 +12684,7 @@ M.funcs = {
]=], ]=],
name = 'virtcol', name = 'virtcol',
params = { { 'expr', 'string|integer[]' }, { 'list', 'boolean' }, { 'winid', 'integer' } }, params = { { 'expr', 'string|any[]' }, { 'list', 'boolean' }, { 'winid', 'integer' } },
signature = 'virtcol({expr} [, {list} [, {winid}]])', signature = 'virtcol({expr} [, {list} [, {winid}]])',
}, },
virtcol2col = { virtcol2col = {

View File

@@ -3282,8 +3282,6 @@ static char *option_get_valid_types(OptIndex opt_idx)
// Ensure that the string is NUL-terminated. // Ensure that the string is NUL-terminated.
kv_push(str, NUL); kv_push(str, NUL);
return str.items; return str.items;
#undef OPTION_ADD_TYPE
} }
/// Check if option is hidden. /// Check if option is hidden.

View File

@@ -2705,7 +2705,7 @@ describe('vterm', function()
pen('font', 0, state) pen('font', 0, state)
-- TODO(dundargoc): fix -- TODO(dundargoc): fix
-- -- Foreground -- Foreground
-- push "\x1b[31m" -- push "\x1b[31m"
-- ?pen foreground = idx(1) -- ?pen foreground = idx(1)
-- push "\x1b[32m" -- push "\x1b[32m"
@@ -2721,7 +2721,7 @@ describe('vterm', function()
-- push "\x1b[39m" -- push "\x1b[39m"
-- ?pen foreground = rgb(240,240,240,is_default_fg) -- ?pen foreground = rgb(240,240,240,is_default_fg)
-- --
-- -- Background -- Background
-- push "\x1b[41m" -- push "\x1b[41m"
-- ?pen background = idx(1) -- ?pen background = idx(1)
-- push "\x1b[42m" -- push "\x1b[42m"
@@ -2737,7 +2737,7 @@ describe('vterm', function()
-- push "\x1b[49m" -- push "\x1b[49m"
-- ?pen background = rgb(0,0,0,is_default_bg) -- ?pen background = rgb(0,0,0,is_default_bg)
-- --
-- -- Bold+ANSI colour == highbright -- Bold+ANSI colour == highbright
-- push "\x1b[m\x1b[1;37m" -- push "\x1b[m\x1b[1;37m"
-- ?pen bold = on -- ?pen bold = on
-- ?pen foreground = idx(15) -- ?pen foreground = idx(15)
@@ -2745,7 +2745,7 @@ describe('vterm', function()
-- ?pen bold = on -- ?pen bold = on
-- ?pen foreground = idx(15) -- ?pen foreground = idx(15)
-- --
-- -- Super/Subscript -- Super/Subscript
-- push "\x1b[73m" -- push "\x1b[73m"
-- ?pen small = on -- ?pen small = on
-- ?pen baseline = raise -- ?pen baseline = raise
@@ -2756,7 +2756,7 @@ describe('vterm', function()
-- ?pen small = off -- ?pen small = off
-- ?pen baseline = normal -- ?pen baseline = normal
-- --
-- -- DECSTR resets pen attributes -- DECSTR resets pen attributes
-- push "\x1b[1;4m" -- push "\x1b[1;4m"
-- ?pen bold = on -- ?pen bold = on
-- ?pen underline = 1 -- ?pen underline = 1
@@ -2896,25 +2896,25 @@ describe('vterm', function()
expect('selection-query mask=0001') expect('selection-query mask=0001')
-- TODO(dundargoc): fix -- TODO(dundargoc): fix
-- -- Send clipboard; final chunk len 4 -- Send clipboard; final chunk len 4
-- SELECTION 1 ["Hello,"] -- SELECTION 1 ["Hello,"]
-- output "\x1b]52;c;" -- output "\x1b]52;c;"
-- output "SGVsbG8s" -- output "SGVsbG8s"
-- output "\x1b\\" -- output "\x1b\\"
-- --
-- -- Send clipboard; final chunk len 3 -- Send clipboard; final chunk len 3
-- SELECTION 1 ["Hello, w"] -- SELECTION 1 ["Hello, w"]
-- output "\x1b]52;c;" -- output "\x1b]52;c;"
-- output "SGVsbG8s" -- output "SGVsbG8s"
-- output "IHc=\x1b\\" -- output "IHc=\x1b\\"
-- --
-- -- Send clipboard; final chunk len 2 -- Send clipboard; final chunk len 2
-- SELECTION 1 ["Hello, world\n"] -- SELECTION 1 ["Hello, world\n"]
-- output "\x1b]52;c;" -- output "\x1b]52;c;"
-- output "SGVsbG8sIHdvcmxk" -- output "SGVsbG8sIHdvcmxk"
-- output "Cg==\x1b\\" -- output "Cg==\x1b\\"
-- --
-- -- Send clipboard; split between chunks -- Send clipboard; split between chunks
-- SELECTION 1 ["Hel" -- SELECTION 1 ["Hel"
-- output "\x1b]52;c;" -- output "\x1b]52;c;"
-- output "SGVs" -- output "SGVs"
@@ -2922,7 +2922,7 @@ describe('vterm', function()
-- output "bG8s" -- output "bG8s"
-- output "\x1b\\" -- output "\x1b\\"
-- --
-- -- Send clipboard; split within chunk -- Send clipboard; split within chunk
-- SELECTION 1 ["Hello" -- SELECTION 1 ["Hello"
-- output "\x1b]52;c;" -- output "\x1b]52;c;"
-- output "SGVs" -- output "SGVs"