mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
feat(api): nvim_exec2(), deprecate nvim_exec() #19032
Problem: The signature of nvim_exec() is not extensible per ":help api-contract". Solution: Introduce nvim_exec2() and deprecate nvim_exec().
This commit is contained in:
committed by
GitHub
parent
257d894d75
commit
fe9cbcb3a5
@@ -30,7 +30,7 @@ describe("'keymap' / :lmap", function()
|
||||
command('lmapclear <buffer>')
|
||||
command('set keymap=dvorak')
|
||||
command('set nomore')
|
||||
local bindings = funcs.nvim_exec('lmap', true)
|
||||
local bindings = funcs.nvim_exec2('lmap', { output = true }).output
|
||||
eq(dedent([[
|
||||
|
||||
l " @_
|
||||
|
||||
Reference in New Issue
Block a user