neovim: pass wrapper args only once (#257136)

This commit is contained in:
Yusup 2023-09-25 14:04:15 +05:00 committed by GitHub
parent 29351a88df
commit 801e33f562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,11 +39,9 @@ let
wrapperArgsStr = if lib.isString wrapperArgs then wrapperArgs else lib.escapeShellArgs wrapperArgs;
# "--add-flags" (lib.escapeShellArgs flags)
# wrapper args used both when generating the manifest and in the final neovim executable
commonWrapperArgs = (lib.optionals (lib.isList wrapperArgs) wrapperArgs)
commonWrapperArgs =
# vim accepts a limited number of commands so we join them all
++ [
[
"--add-flags" ''--cmd "lua ${providerLuaRc}"''
# (lib.intersperse "|" hostProviderViml)
] ++ lib.optionals (packpathDirs.myNeovimPackages.start != [] || packpathDirs.myNeovimPackages.opt != []) [