mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
fix(lsp): cancel session when leaving snippet region (#25762)
This commit is contained in:

committed by
GitHub

parent
9de157bce4
commit
15983cf2c6
@@ -164,4 +164,11 @@ describe('vim.snippet', function()
|
||||
feed('<esc>Vjjd')
|
||||
eq(false, exec_lua('return vim.snippet.active()'))
|
||||
end)
|
||||
|
||||
it('cancels session when leaving snippet region', function()
|
||||
feed('i<cr>')
|
||||
test_success({ 'local function $1()', ' $0', 'end' }, { '', 'local function ()', ' ', 'end' })
|
||||
feed('<esc>k')
|
||||
eq(false, exec_lua('return vim.snippet.active()'))
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user