mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
fix(lsp): do not add extra indentation
This commit is contained in:

committed by
Mathias Fußenegger

parent
370232dbef
commit
94127cb5df
@@ -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' },
|
||||
|
Reference in New Issue
Block a user