fix: bad cmp confirm

This commit is contained in:
Pei Yang Ching 2024-10-14 22:24:22 +02:00
commit faba694a47

View file

@ -60,19 +60,9 @@ in {
${mappings.confirm.value} = mkLuaInline ''
cmp.mapping(function(fallback)
if cmp.visible() then
${
if luasnipEnable
then ''
if luasnip.expandable() then
luasnip.expand()
else
cmp.confirm({ select = true })
end
''
else "cmp.confirm({ select = true })"
}
cmp.confirm({ select = true })
else
fallback()
fallback()
end
end)
'';