mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
refactor: sort various Lua tables in src/ alphabetically (#30977)
This commit is contained in:
@@ -11015,6 +11015,44 @@ M.funcs = {
|
||||
params = { { 'expr', 'number' } },
|
||||
signature = 'srand([{expr}])',
|
||||
},
|
||||
state = {
|
||||
args = { 0, 1 },
|
||||
base = 1,
|
||||
desc = [=[
|
||||
Return a string which contains characters indicating the
|
||||
current state. Mostly useful in callbacks that want to do
|
||||
work that may not always be safe. Roughly this works like:
|
||||
- callback uses state() to check if work is safe to do.
|
||||
Yes: then do it right away.
|
||||
No: add to work queue and add a |SafeState| autocommand.
|
||||
- When SafeState is triggered and executes your autocommand,
|
||||
check with `state()` if the work can be done now, and if yes
|
||||
remove it from the queue and execute.
|
||||
Remove the autocommand if the queue is now empty.
|
||||
Also see |mode()|.
|
||||
|
||||
When {what} is given only characters in this string will be
|
||||
added. E.g, this checks if the screen has scrolled: >vim
|
||||
if state('s') == ''
|
||||
" screen has not scrolled
|
||||
<
|
||||
These characters indicate the state, generally indicating that
|
||||
something is busy:
|
||||
m halfway a mapping, :normal command, feedkeys() or
|
||||
stuffed command
|
||||
o operator pending, e.g. after |d|
|
||||
a Insert mode autocomplete active
|
||||
x executing an autocommand
|
||||
S not triggering SafeState, e.g. after |f| or a count
|
||||
c callback invoked, including timer (repeats for
|
||||
recursiveness up to "ccc")
|
||||
s screen has scrolled for messages
|
||||
]=],
|
||||
fast = true,
|
||||
name = 'state',
|
||||
params = { { 'what', 'string' } },
|
||||
signature = 'state([{what}])',
|
||||
},
|
||||
stdioopen = {
|
||||
args = 1,
|
||||
desc = [=[
|
||||
@@ -11073,44 +11111,6 @@ M.funcs = {
|
||||
returns = 'string|string[]',
|
||||
signature = 'stdpath({what})',
|
||||
},
|
||||
state = {
|
||||
args = { 0, 1 },
|
||||
base = 1,
|
||||
desc = [=[
|
||||
Return a string which contains characters indicating the
|
||||
current state. Mostly useful in callbacks that want to do
|
||||
work that may not always be safe. Roughly this works like:
|
||||
- callback uses state() to check if work is safe to do.
|
||||
Yes: then do it right away.
|
||||
No: add to work queue and add a |SafeState| autocommand.
|
||||
- When SafeState is triggered and executes your autocommand,
|
||||
check with `state()` if the work can be done now, and if yes
|
||||
remove it from the queue and execute.
|
||||
Remove the autocommand if the queue is now empty.
|
||||
Also see |mode()|.
|
||||
|
||||
When {what} is given only characters in this string will be
|
||||
added. E.g, this checks if the screen has scrolled: >vim
|
||||
if state('s') == ''
|
||||
" screen has not scrolled
|
||||
<
|
||||
These characters indicate the state, generally indicating that
|
||||
something is busy:
|
||||
m halfway a mapping, :normal command, feedkeys() or
|
||||
stuffed command
|
||||
o operator pending, e.g. after |d|
|
||||
a Insert mode autocomplete active
|
||||
x executing an autocommand
|
||||
S not triggering SafeState, e.g. after |f| or a count
|
||||
c callback invoked, including timer (repeats for
|
||||
recursiveness up to "ccc")
|
||||
s screen has scrolled for messages
|
||||
]=],
|
||||
fast = true,
|
||||
name = 'state',
|
||||
params = { { 'what', 'string' } },
|
||||
signature = 'state([{what}])',
|
||||
},
|
||||
str2float = {
|
||||
args = 1,
|
||||
base = 1,
|
||||
|
Reference in New Issue
Block a user