Skip to content

Commit c447bce

Browse files
authored
Update packages/neovim/src/utils/findNvim.ts
1 parent 92b67be commit c447bce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/neovim/src/utils/findNvim.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ export function findNvim(opt: FindNvimOptions = {}): Readonly<FindNvimResult> {
197197
const nvimExecutable = windows ? 'nvim.exe' : 'nvim';
198198

199199
const allPaths = new Set<string>([
200-
...(opt.paths || []).map(normalizePath),
201-
...(opt.dirs || []).map(dir => normalizePath(join(dir, nvimExecutable))),
200+
...(opt.paths ?? []).map(normalizePath),
201+
...(opt.dirs ?? []).map(dir => normalizePath(join(dir, nvimExecutable))),
202202
...[...platformDirs].map(dir => join(dir, nvimExecutable)),
203203
]);
204204

0 commit comments

Comments
 (0)