mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-16 09:01:03 +00:00
fix: bad cmp confirm
This commit is contained in:
parent
be81f19b5f
commit
faba694a47
1 changed files with 2 additions and 12 deletions
|
|
@ -60,19 +60,9 @@ in {
|
||||||
${mappings.confirm.value} = mkLuaInline ''
|
${mappings.confirm.value} = mkLuaInline ''
|
||||||
cmp.mapping(function(fallback)
|
cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
${
|
cmp.confirm({ select = true })
|
||||||
if luasnipEnable
|
|
||||||
then ''
|
|
||||||
if luasnip.expandable() then
|
|
||||||
luasnip.expand()
|
|
||||||
else
|
|
||||||
cmp.confirm({ select = true })
|
|
||||||
end
|
|
||||||
''
|
|
||||||
else "cmp.confirm({ select = true })"
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue