mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
@ -39,7 +39,7 @@ let s:Parser.LINE_BUFFER_MAX_LEN = 100
|
|||||||
" Create a new Parser instance with the initial state and a target. The target
|
" Create a new Parser instance with the initial state and a target. The target
|
||||||
" is a dictionary that will be the `self` of every State method call associated
|
" is a dictionary that will be the `self` of every State method call associated
|
||||||
" with the parser, and may contain options normally passed to
|
" with the parser, and may contain options normally passed to
|
||||||
" `jobstart`(on_stdout/on_stderr will be overriden). Returns the target so it
|
" `jobstart`(on_stdout/on_stderr will be overridden). Returns the target so it
|
||||||
" can be called directly as the second argument of `jobstart`:
|
" can be called directly as the second argument of `jobstart`:
|
||||||
"
|
"
|
||||||
" call jobstart(prog_argv, vimexpect#Parser(initial_state, {'pty': 1}))
|
" call jobstart(prog_argv, vimexpect#Parser(initial_state, {'pty': 1}))
|
||||||
|
@ -12495,7 +12495,7 @@ Command-line expressions highlighting *expr-highlight*
|
|||||||
|
|
||||||
Expressions entered by the user in |i_CTRL-R_=|, |c_CTRL-\_e|, |quote=| are
|
Expressions entered by the user in |i_CTRL-R_=|, |c_CTRL-\_e|, |quote=| are
|
||||||
highlighted by the built-in expressions parser. It uses highlight groups
|
highlighted by the built-in expressions parser. It uses highlight groups
|
||||||
described in the table below, which may be overriden by colorschemes.
|
described in the table below, which may be overridden by colorschemes.
|
||||||
*hl-NvimInvalid*
|
*hl-NvimInvalid*
|
||||||
Besides the "Nvim"-prefixed highlight groups described below, there are
|
Besides the "Nvim"-prefixed highlight groups described below, there are
|
||||||
"NvimInvalid"-prefixed highlight groups which have the same meaning but
|
"NvimInvalid"-prefixed highlight groups which have the same meaning but
|
||||||
|
@ -860,7 +860,7 @@ const char *const east_node_type_tab[] = {
|
|||||||
///
|
///
|
||||||
/// @param[in] ch Character to convert.
|
/// @param[in] ch Character to convert.
|
||||||
///
|
///
|
||||||
/// @return Converted string, stored in a static buffer (overriden after each
|
/// @return Converted string, stored in a static buffer (overridden after each
|
||||||
/// call).
|
/// call).
|
||||||
static const char *intchar2str(const int ch)
|
static const char *intchar2str(const int ch)
|
||||||
FUNC_ATTR_WARN_UNUSED_RESULT
|
FUNC_ATTR_WARN_UNUSED_RESULT
|
||||||
|
@ -533,7 +533,7 @@ describe('API', function()
|
|||||||
nvim("notify", "hello world", 2, {})
|
nvim("notify", "hello world", 2, {})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('can be overriden', function()
|
it('can be overridden', function()
|
||||||
command("lua vim.notify = function(...) return 42 end")
|
command("lua vim.notify = function(...) return 42 end")
|
||||||
eq(42, meths.exec_lua("return vim.notify('Hello world')", {}))
|
eq(42, meths.exec_lua("return vim.notify('Hello world')", {}))
|
||||||
nvim("notify", "hello world", 4, {})
|
nvim("notify", "hello world", 4, {})
|
||||||
|
Reference in New Issue
Block a user