mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-16 17:11:02 +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,17 +60,7 @@ 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
|
||||||
${
|
|
||||||
if luasnipEnable
|
|
||||||
then ''
|
|
||||||
if luasnip.expandable() then
|
|
||||||
luasnip.expand()
|
|
||||||
else
|
|
||||||
cmp.confirm({ select = true })
|
cmp.confirm({ select = true })
|
||||||
end
|
|
||||||
''
|
|
||||||
else "cmp.confirm({ select = true })"
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue