From 9037a180defe3e7344e2eb9843cfa20a43d6f59f Mon Sep 17 00:00:00 2001 From: ZyX Date: Mon, 31 Aug 2015 21:45:33 +0300 Subject: runtime: Add [ft]plugin/shada.vim files that automatically open .shada --- test/functional/plugin/helpers.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/functional/plugin/helpers.lua') diff --git a/test/functional/plugin/helpers.lua b/test/functional/plugin/helpers.lua index 217d561591..9762ca314e 100644 --- a/test/functional/plugin/helpers.lua +++ b/test/functional/plugin/helpers.lua @@ -6,10 +6,10 @@ local spawn, set_session, nvim_prog, merge_args = local additional_cmd = '' -local function nvim_argv() +local function nvim_argv(shada_file) local rtp_value = ('\'%s/runtime\''):format( paths.test_source_path:gsub('\'', '\'\'')) - local nvim_argv = {nvim_prog, '-u', 'NORC', '-i', 'NONE', '-N', + local nvim_argv = {nvim_prog, '-u', 'NORC', '-i', shada_file or 'NONE', '-N', '--cmd', 'set shortmess+=I background=light noswapfile', '--cmd', 'let &runtimepath=' .. rtp_value, '--cmd', additional_cmd, @@ -23,11 +23,11 @@ end local session = nil -local reset = function() +local reset = function(...) if session then session:exit(0) end - session = spawn(nvim_argv()) + session = spawn(nvim_argv(...)) set_session(session) end -- cgit