mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
docs: misc #31996
This commit is contained in:
@@ -1225,12 +1225,13 @@ M.funcs = {
|
||||
args = 1,
|
||||
base = 1,
|
||||
desc = [=[
|
||||
Get the amount of indent for line {lnum} according the C
|
||||
indenting rules, as with 'cindent'.
|
||||
Get the amount of indent for line {lnum} according the
|
||||
|C-indenting| rules, as with 'cindent'.
|
||||
The indent is counted in spaces, the value of 'tabstop' is
|
||||
relevant. {lnum} is used just like in |getline()|.
|
||||
When {lnum} is invalid -1 is returned.
|
||||
See |C-indenting|.
|
||||
|
||||
To get or set indent of lines in a string, see |vim.text.indent()|.
|
||||
|
||||
]=],
|
||||
name = 'cindent',
|
||||
@@ -5473,6 +5474,8 @@ M.funcs = {
|
||||
|getline()|.
|
||||
When {lnum} is invalid -1 is returned.
|
||||
|
||||
To get or set indent of lines in a string, see |vim.text.indent()|.
|
||||
|
||||
]=],
|
||||
name = 'indent',
|
||||
params = { { 'lnum', 'integer|string' } },
|
||||
@@ -6595,9 +6598,8 @@ M.funcs = {
|
||||
When {abbr} is there and it is |TRUE| use abbreviations
|
||||
instead of mappings.
|
||||
|
||||
When {dict} is there and it is |TRUE| return a dictionary
|
||||
containing all the information of the mapping with the
|
||||
following items: *mapping-dict*
|
||||
When {dict} is |TRUE|, return a dictionary describing the
|
||||
mapping, with these items: *mapping-dict*
|
||||
"lhs" The {lhs} of the mapping as it would be typed
|
||||
"lhsraw" The {lhs} of the mapping as raw bytes
|
||||
"lhsrawalt" The {lhs} of the mapping as raw bytes, alternate
|
||||
@@ -6659,7 +6661,7 @@ M.funcs = {
|
||||
{ 'abbr', 'boolean' },
|
||||
{ 'dict', 'true' },
|
||||
},
|
||||
returns = 'string|table<string,any>',
|
||||
returns = 'table<string,any>',
|
||||
},
|
||||
mapcheck = {
|
||||
args = { 1, 3 },
|
||||
@@ -8278,7 +8280,7 @@ M.funcs = {
|
||||
endif
|
||||
endfunc
|
||||
call prompt_setcallback(bufnr(), function('s:TextEntered'))
|
||||
|
||||
<
|
||||
]=],
|
||||
name = 'prompt_setcallback',
|
||||
params = { { 'buf', 'integer|string' }, { 'expr', 'string|function' } },
|
||||
@@ -11225,7 +11227,9 @@ M.funcs = {
|
||||
tags = { 'E6100' },
|
||||
desc = [=[
|
||||
Returns |standard-path| locations of various default files and
|
||||
directories.
|
||||
directories. The locations are driven by |base-directories|
|
||||
which you can configure via |$NVIM_APPNAME| or the `$XDG_…`
|
||||
environment variables.
|
||||
|
||||
{what} Type Description ~
|
||||
cache String Cache directory: arbitrary temporary
|
||||
|
Reference in New Issue
Block a user