Fix directory candidates behavior

This commit is contained in:
hrsh7th 2021-12-20 16:53:39 +09:00
parent 94cc3117eb
commit 81d88dfcaf

View File

@ -151,6 +151,8 @@ source._candidates = function(_, dirname, include_hidden, callback)
}
if type == 'directory' then
item.kind = cmp.lsp.CompletionItemKind.Folder
item.word = name
item.label = name .. '/'
item.insertText = name .. '/'
end
table.insert(items, item)