diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-17 13:00:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-17 13:00:19 +0100 |
commit | 0c1f7831649e92b6904ca580ee90acd6ba89d1a8 (patch) | |
tree | 0d3980fa4a77c305083dfc3a4ee24249e328408e /test/functional/helpers.lua | |
parent | 10045cddb6710ea92337d30fb15deded1fe6b432 (diff) | |
parent | 1dbe7a4decdd7e93153c0c3cb81197531b719b81 (diff) | |
download | rneovim-0c1f7831649e92b6904ca580ee90acd6ba89d1a8.tar.gz rneovim-0c1f7831649e92b6904ca580ee90acd6ba89d1a8.tar.bz2 rneovim-0c1f7831649e92b6904ca580ee90acd6ba89d1a8.zip |
Merge #6087 from justinmk/defaults
defaults: 'ruler', 'showcmd', 'belloff=all'
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 44fff0e9a7..13a0cff137 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -20,9 +20,12 @@ local filter = global_helpers.filter local start_dir = lfs.currentdir() -- XXX: NVIM_PROG takes precedence, QuickBuild sets it. local nvim_prog = os.getenv('NVIM_PROG') or os.getenv('NVIM_PRG') or 'build/bin/nvim' +-- Default settings for the test session. +local nvim_set = 'set shortmess+=I background=light noswapfile noautoindent' + ..' laststatus=1 undodir=. directory=. viewdir=. backupdir=.' + ..' belloff= noshowcmd noruler' local nvim_argv = {nvim_prog, '-u', 'NONE', '-i', 'NONE', '-N', - '--cmd', 'set shortmess+=I background=light noswapfile noautoindent laststatus=1 undodir=. directory=. viewdir=. backupdir=.', - '--embed'} + '--cmd', nvim_set, '--embed'} local mpack = require('mpack') @@ -597,6 +600,7 @@ local M = { nvim = nvim, nvim_async = nvim_async, nvim_prog = nvim_prog, + nvim_set = nvim_set, nvim_dir = nvim_dir, buffer = buffer, window = window, |