mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-15 16:41: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 ''
|
||||
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)
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue