fix(lsp): do not add extra indentation

This commit is contained in:
Maria José Solano
2023-10-22 22:38:11 -07:00
committed by Mathias Fußenegger
parent 370232dbef
commit 94127cb5df
2 changed files with 8 additions and 3 deletions

View File

@@ -48,6 +48,10 @@ describe('vim.snippet', function()
)
end)
it('adds indentation based on the start of snippet lines', function()
test_success({ 'if $1 then', ' $0', 'end' }, { 'if then', ' ', 'end' })
end)
it('replaces tabs with spaces when expandtab is set', function()
test_success(
{ 'function $1($2)', '\t$0', 'end' },