mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
refactor: use nvim.foo.bar format for autocommand groups
This commit is contained in:
@@ -351,7 +351,7 @@ describe(':terminal buffer', function()
|
||||
end)
|
||||
|
||||
it('TermRequest synchronization #27572', function()
|
||||
command('autocmd! nvim_terminal TermRequest')
|
||||
command('autocmd! nvim.terminal TermRequest')
|
||||
local term = exec_lua([[
|
||||
_G.input = {}
|
||||
local term = vim.api.nvim_open_term(0, {
|
||||
|
||||
@@ -176,7 +176,7 @@ local function test_terminal_with_fake_shell(backslash)
|
||||
end)
|
||||
|
||||
it('with no argument, acts like jobstart(…,{term=true})', function()
|
||||
command('autocmd! nvim_terminal TermClose')
|
||||
command('autocmd! nvim.terminal TermClose')
|
||||
feed_command('terminal')
|
||||
screen:expect([[
|
||||
^ready $ |
|
||||
@@ -246,7 +246,7 @@ local function test_terminal_with_fake_shell(backslash)
|
||||
end)
|
||||
|
||||
it('ignores writes if the backing stream closes', function()
|
||||
command('autocmd! nvim_terminal TermClose')
|
||||
command('autocmd! nvim.terminal TermClose')
|
||||
feed_command('terminal')
|
||||
feed('iiXXXXXXX')
|
||||
poke_eventloop()
|
||||
@@ -258,14 +258,14 @@ local function test_terminal_with_fake_shell(backslash)
|
||||
end)
|
||||
|
||||
it('works with findfile()', function()
|
||||
command('autocmd! nvim_terminal TermClose')
|
||||
command('autocmd! nvim.terminal TermClose')
|
||||
feed_command('terminal')
|
||||
eq('term://', string.match(eval('bufname("%")'), '^term://'))
|
||||
eq('scripts/shadacat.py', eval('findfile("scripts/shadacat.py", ".")'))
|
||||
end)
|
||||
|
||||
it('works with :find', function()
|
||||
command('autocmd! nvim_terminal TermClose')
|
||||
command('autocmd! nvim.terminal TermClose')
|
||||
feed_command('terminal')
|
||||
screen:expect([[
|
||||
^ready $ |
|
||||
|
||||
@@ -644,7 +644,7 @@ describe('TUI', function()
|
||||
|
||||
aunmenu PopUp
|
||||
" Delete the default MenuPopup event handler.
|
||||
autocmd! nvim_popupmenu
|
||||
autocmd! nvim.popupmenu
|
||||
menu PopUp.foo :let g:menustr = 'foo'<CR>
|
||||
menu PopUp.bar :let g:menustr = 'bar'<CR>
|
||||
menu PopUp.baz :let g:menustr = 'baz'<CR>
|
||||
|
||||
Reference in New Issue
Block a user