mirror of
https://codeberg.org/FelipeLema/cmp-async-path
synced 2025-05-15 06:08:32 +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
|
if type == 'directory' then
|
||||||
item.kind = cmp.lsp.CompletionItemKind.Folder
|
item.kind = cmp.lsp.CompletionItemKind.Folder
|
||||||
|
item.word = name
|
||||||
|
item.label = name .. '/'
|
||||||
item.insertText = name .. '/'
|
item.insertText = name .. '/'
|
||||||
end
|
end
|
||||||
table.insert(items, item)
|
table.insert(items, item)
|
||||||
|
Loading…
Reference in New Issue
Block a user