mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
fix(lsp): track snippet deletion
This commit is contained in:

committed by
Mathias Fußenegger

parent
5e5f5174e3
commit
370232dbef
@@ -154,4 +154,10 @@ describe('vim.snippet', function()
|
||||
it('errors with multiple $0 tabstops', function()
|
||||
test_fail('function $1() { $0 }$0', 'multiple $0 tabstops')
|
||||
end)
|
||||
|
||||
it('cancels session when deleting the snippet', function()
|
||||
test_success({ 'local function $1()', ' $0', 'end' }, { 'local function ()', ' ', 'end' })
|
||||
feed('<esc>Vjjd')
|
||||
eq(false, exec_lua('return vim.snippet.active()'))
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user