mirror of
https://codeberg.org/FelipeLema/cmp-async-path
synced 2025-05-11 20:29:16 +00:00
Fix directory candidates behavior
This commit is contained in:
parent
94cc3117eb
commit
81d88dfcaf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user