1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:20:04 +08:00

fix(neovide): fix neovide startup

neovide use `nvim --embed -p` by default
This commit is contained in:
Eric Wong 2024-03-10 12:15:53 +08:00
parent f11ad921eb
commit 29501af80f

View File

@ -1668,6 +1668,8 @@ function! s:parser_argv() abort
return [1, fnamemodify(expand(v:argv[-1]), ':p')]
elseif filereadable(v:argv[-1])
return [2, get(v:, 'argv', ['failed to get v:argv'])]
elseif v:argv[-1] == '-p' && v:argv[-2] == '--embed'
return [0]
elseif v:argv[-1] != '--embed' && get(v:argv, -2, '') != '--cmd'
return [2, v:argv[-1]]
else