Skip to content

Commit e86f3f2

Browse files
committed
show symlink as kind 'sym'
1 parent bb6651f commit e86f3f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

denops/ddc-sources/file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ export class Source extends BaseSource {
217217
)
218218
.take(p.takeFileNum)
219219
.filter(({ name }) => name.startsWith(inputFileBasePrefix))
220-
.map(({ name, isDirectory }): Candidate => ({
220+
.map(({ name, isDirectory, isSymlink }): Candidate => ({
221221
word: name.slice(inputFileBasePrefix.length),
222222
menu: (menu !== "" && isInputAbs ? path.sep : "") + menu,
223-
kind: isDirectory ? "dir" : "",
223+
kind: isDirectory ? "dir" : isSymlink ? "sym" : "",
224224
}))
225225
.take(max)
226226
.toArray()

0 commit comments

Comments
 (0)