Format with stylua

This commit is contained in:
hrsh7th
2023-05-03 17:06:27 +00:00
committed by github-actions[bot]
parent 833954209a
commit bd168a2f86

View File

@@ -33,8 +33,7 @@ describe('cmp.core', function()
end) end)
end) end)
feedkeys.call(filter, 'n', function() feedkeys.call(filter, 'n', function()
c:confirm(c.sources[s.id].entries[1], {}, function() c:confirm(c.sources[s.id].entries[1], {}, function() end)
end)
end) end)
local state = {} local state = {}
feedkeys.call('', 'x', function() feedkeys.call('', 'x', function()
@@ -93,22 +92,22 @@ describe('cmp.core', function()
it('#1552', function() it('#1552', function()
local state = confirm(keymap.t('ios.'), '', { local state = confirm(keymap.t('ios.'), '', {
filterText = "IsPermission", filterText = 'IsPermission',
insertTextFormat = 2, insertTextFormat = 2,
label = "IsPermission", label = 'IsPermission',
textEdit = { textEdit = {
newText = "IsPermission($0)", newText = 'IsPermission($0)',
range = { range = {
["end"] = { ['end'] = {
character = 3, character = 3,
line = 0 line = 0,
}, },
start = { start = {
character = 3, character = 3,
line = 0 line = 0,
} },
} },
} },
}) })
assert.are.same(state.buffer, { 'os.IsPermission()' }) assert.are.same(state.buffer, { 'os.IsPermission()' })
assert.are.same(state.cursor, { 1, 16 }) assert.are.same(state.cursor, { 1, 16 })