Loading pkgs/applications/editors/neovim/tests/default.nix +14 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,14 @@ let map <Leader>$ <Cmd>Obsession<CR> ''; } { plugin = vim-obsession; type = "lua"; config = '' -- this is a comment vim.g.nixpkgs_test_value = 42 ''; } ]; packagesWithSingleLineConfigs = with vimPlugins; [ Loading Loading @@ -415,6 +423,12 @@ pkgs.lib.recurseIntoAttrs rec { rocks_install_plenary = runTest nvim_with_rocks_nvim '' nvim -V3rocks-log.txt -i NONE +'Rocks install plenary.nvim' +quit! -e ''; can_load_lua_config = runTest nvim_with_plugins '' if ! nvim --headless -V3lua-config-log.txt -i NONE -c 'lua if vim.g.nixpkgs_test_value ~= 42 then os.exit(42) end' +quit! -e; then echo "Failed to find plugin config" exit 1 fi ''; inherit (vimPlugins) corePlugins; Loading pkgs/applications/editors/neovim/wrapper.nix +0 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,6 @@ neovimUtils, perl, lndir, vimUtils, runCommand, }: Loading Loading
pkgs/applications/editors/neovim/tests/default.nix +14 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,14 @@ let map <Leader>$ <Cmd>Obsession<CR> ''; } { plugin = vim-obsession; type = "lua"; config = '' -- this is a comment vim.g.nixpkgs_test_value = 42 ''; } ]; packagesWithSingleLineConfigs = with vimPlugins; [ Loading Loading @@ -415,6 +423,12 @@ pkgs.lib.recurseIntoAttrs rec { rocks_install_plenary = runTest nvim_with_rocks_nvim '' nvim -V3rocks-log.txt -i NONE +'Rocks install plenary.nvim' +quit! -e ''; can_load_lua_config = runTest nvim_with_plugins '' if ! nvim --headless -V3lua-config-log.txt -i NONE -c 'lua if vim.g.nixpkgs_test_value ~= 42 then os.exit(42) end' +quit! -e; then echo "Failed to find plugin config" exit 1 fi ''; inherit (vimPlugins) corePlugins; Loading
pkgs/applications/editors/neovim/wrapper.nix +0 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,6 @@ neovimUtils, perl, lndir, vimUtils, runCommand, }: Loading