Remove the leading slash from the directory label

This commit is contained in:
amarakon 2022-10-02 23:12:54 -04:00
parent 447c87cdd6
commit 1267fcfe88
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ source._candidates = function(_, dirname, include_hidden, option, callback)
}
if fs_type == 'directory' then
item.kind = cmp.lsp.CompletionItemKind.Folder
item.label = name .. '/'
item.label = name
item.insertText = name .. '/'
if not option.trailing_slash then
item.word = name