diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-05 18:08:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-05 18:08:54 +0800 |
commit | 9711370c26453f3a966b9306111939b144248b41 (patch) | |
tree | efa026eba653f1af347b280cf3b187b9046372a0 /test | |
parent | a500c5f808ccf0b678c935f00e0af4503a5bd724 (diff) | |
download | rneovim-9711370c26453f3a966b9306111939b144248b41.tar.gz rneovim-9711370c26453f3a966b9306111939b144248b41.tar.bz2 rneovim-9711370c26453f3a966b9306111939b144248b41.zip |
feat(defaults): add :Inspect to right-click menu (#28181)
Ref #21393
- Move default user commands to _defaults.lua as that now contains all
kinds of defaults rather than just default mappings and menus.
- Remove the :aunmenu as there are no menus when _defaults.lua is run.
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/core/startup_spec.lua | 10 | ||||
-rw-r--r-- | test/functional/helpers.lua | 4 | ||||
-rw-r--r-- | test/old/testdir/setup.vim | 3 |
3 files changed, 5 insertions, 12 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua index adf29cbe7c..512b79acc5 100644 --- a/test/functional/core/startup_spec.lua +++ b/test/functional/core/startup_spec.lua @@ -101,15 +101,7 @@ describe('startup', function() VIMRUNTIME = os.getenv('VIMRUNTIME'), }, }) - screen:expect([[ - ^ | - | - Entering Debug mode. Type "cont" to continue. | - nvim_exec2() | - cmd: aunmenu * | - > | - | - ]]) + screen:expect({ any = pesc('Entering Debug mode. Type "cont" to continue.') }) fn.chansend(id, 'cont\n') screen:expect([[ ^ | diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index caa14a480b..e5b0819d12 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -37,9 +37,9 @@ module.nvim_argv = { runtime_set, '--cmd', module.nvim_set, - -- Remove default mappings. + -- Remove default user commands and mappings. '--cmd', - 'mapclear | mapclear!', + 'comclear | mapclear | mapclear!', -- Make screentest work after changing to the new default color scheme -- Source 'vim' color scheme without side effects -- TODO: rewrite tests diff --git a/test/old/testdir/setup.vim b/test/old/testdir/setup.vim index 091fb95806..a87903bc0d 100644 --- a/test/old/testdir/setup.vim +++ b/test/old/testdir/setup.vim @@ -44,7 +44,8 @@ if exists('s:did_load') endif let s:did_load = 1 -" Clear Nvim default mappings and menus. +" Clear Nvim default user commands, mappings and menus. +comclear mapclear mapclear! aunmenu * |