neovim: fixed luasnip test + simplify code

let's not use vimrcContent that is effectively the identity in our context.
This commit is contained in:
Matthieu C.
2025-02-07 00:44:32 +01:00
committed by Matthieu Coudron
parent 7d5a33939f
commit b2df781d90
2 changed files with 2 additions and 7 deletions
@@ -364,7 +364,6 @@ in
# for instance luasnip has a dependency on jsregexp
can_require_transitive_deps =
runTest nvim-with-luasnip ''
cat ${nvim-with-luasnip}/nvim
${nvim-with-luasnip}/bin/nvim -i NONE --cmd "lua require'jsregexp'" -e +quitall!
'';
+2 -6
View File
@@ -84,13 +84,9 @@ let
pluginRC = lib.foldl (acc: p: if p.config != null then acc ++ [p.config] else acc) [] pluginsNormalized;
# a limited RC script used only to generate the manifest for remote plugins
manifestRc = vimUtils.vimrcContent { customRC = ""; };
manifestRc = "";
# we call vimrcContent without 'packages' to avoid the init.vim generation
neovimRcContent' = vimUtils.vimrcContent {
beforePlugins = "";
customRC = lib.concatStringsSep "\n" (pluginRC ++ lib.optional (neovimRcContent != null) neovimRcContent);
packages = null;
};
neovimRcContent' = lib.concatStringsSep "\n" (pluginRC ++ lib.optional (neovimRcContent != null) neovimRcContent);
packpathDirs.myNeovimPackages = myVimPackage;
finalPackdir = neovimUtils.packDir packpathDirs;