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:
parent
f11ad921eb
commit
29501af80f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user