File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
pkgs/applications/editors/neovim/tests Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 101101 ### neovim tests
102102 ##################
103103 nvim_with_plugins = wrapNeovim2 "-with-plugins" nvimConfNix ;
104+ nvim_singlelines = wrapNeovim2 "-single-lines" nvimConfSingleLines ;
105+
106+ # test that passthru.initRc hasn't changed
107+ passthruInitRc = runTest nvim_singlelines ''
108+ INITRC=${ pkgs . writeTextFile { name = "initrc" ; text = nvim_singlelines . passthru . initRc ; } }
109+ assertFileContent \
110+ $INITRC \
111+ "${ ./init-single-lines.vim } "
112+ '' ;
104113
105- singlelinesconfig = runTest ( wrapNeovim2 "-single-lines" nvimConfSingleLines ) ''
114+ # test single line concatenation
115+ singlelinesconfig = runTest nvim_singlelines ''
106116 assertFileContains \
107117 "$luarcGeneric" \
108118 "vim.cmd.source \"/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-init.vim"
127137 viAlias = true ;
128138 } ;
129139
140+ # test it still works with vim-plug
130141 nvim_with_plug = neovim . override {
131142 extraName = "-with-plug" ;
132143 configure . packages . plugins = with pkgs . vimPlugins ; {
You can’t perform that action at this time.
0 commit comments