Fix filename completion

This commit is contained in:
hrsh7th 2021-08-10 03:21:32 +09:00
parent b5e157c8ae
commit 175a385424
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,7 @@ source._candidates = function(_, context, dirname, offset, callback)
else
table.insert(items, {
label = name,
filterText = '/' .. name,
insertText = '/' .. name,
kind = cmp.lsp.CompletionItemKind.File,
})
@ -133,6 +134,7 @@ source._candidates = function(_, context, dirname, offset, callback)
elseif type == 'file' then
table.insert(items, {
label = name,
filterText = '/' .. name,
insertText = '/' .. name,
kind = cmp.lsp.CompletionItemKind.File,
})