Improve common string mapping instruction

This commit is contained in:
hrsh7th
2022-02-14 13:26:36 +09:00
parent 2d8f40b297
commit ba47440a97
2 changed files with 2 additions and 4 deletions

View File

@@ -211,9 +211,7 @@ NOTE: You can call these functions in mapping via `<Cmd>lua require('cmp').compl
mapping = {
['<C-l>'] = cmp.mapping(function(fallback)
if cmp.visible() then
if cmp.complete_common_string() then
return
end
return cmp.complete_common_string()
end
fallback()
end, { 'i', 'c' }),