aboutsummaryrefslogtreecommitdiff
path: root/test/functional/options/defaults_spec.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-12 13:11:28 +0000
committerLewis Russell <lewis6991@gmail.com>2024-01-12 17:53:27 +0000
commit4f81f506f96f8b5bfcf00e952ceb492d3ce9dc6e (patch)
tree0cbb2cf8dac8b4f43109dc6f7a4051dfbea23f12 /test/functional/options/defaults_spec.lua
parentc30f2e3182e3b50e7c03932027ac55edfc8ada4a (diff)
downloadrneovim-4f81f506f96f8b5bfcf00e952ceb492d3ce9dc6e.tar.gz
rneovim-4f81f506f96f8b5bfcf00e952ceb492d3ce9dc6e.tar.bz2
rneovim-4f81f506f96f8b5bfcf00e952ceb492d3ce9dc6e.zip
test: normalise nvim bridge functions
- remove helpers.cur*meths - remove helpers.nvim
Diffstat (limited to 'test/functional/options/defaults_spec.lua')
-rw-r--r--test/functional/options/defaults_spec.lua36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua
index 6bc74b3540..234dc47f20 100644
--- a/test/functional/options/defaults_spec.lua
+++ b/test/functional/options/defaults_spec.lua
@@ -221,9 +221,9 @@ describe('startup defaults', function()
eq(meths.nvim_get_option_value('runtimepath', {}), meths.nvim_get_option_value('packpath', {}))
-- Does not follow modifications to runtimepath.
- meths.nvim_command('set runtimepath+=foo')
+ command('set runtimepath+=foo')
neq(meths.nvim_get_option_value('runtimepath', {}), meths.nvim_get_option_value('packpath', {}))
- meths.nvim_command('set packpath+=foo')
+ command('set packpath+=foo')
eq(meths.nvim_get_option_value('runtimepath', {}), meths.nvim_get_option_value('packpath', {}))
end)
@@ -430,11 +430,11 @@ describe('XDG defaults', function()
),
(meths.nvim_get_option_value('runtimepath', {})):gsub('\\', '/')
)
- meths.nvim_command('set runtimepath&')
- meths.nvim_command('set backupdir&')
- meths.nvim_command('set directory&')
- meths.nvim_command('set undodir&')
- meths.nvim_command('set viewdir&')
+ command('set runtimepath&')
+ command('set backupdir&')
+ command('set directory&')
+ command('set undodir&')
+ command('set viewdir&')
eq(
(
(
@@ -573,11 +573,11 @@ describe('XDG defaults', function()
),
(meths.nvim_get_option_value('runtimepath', {})):gsub('\\', '/')
)
- meths.nvim_command('set runtimepath&')
- meths.nvim_command('set backupdir&')
- meths.nvim_command('set directory&')
- meths.nvim_command('set undodir&')
- meths.nvim_command('set viewdir&')
+ command('set runtimepath&')
+ command('set backupdir&')
+ command('set directory&')
+ command('set undodir&')
+ command('set viewdir&')
eq(
(
(
@@ -617,7 +617,7 @@ describe('XDG defaults', function()
('$XDG_CONFIG_HOME/' .. state_dir .. '/view//'),
meths.nvim_get_option_value('viewdir', {}):gsub('\\', '/')
)
- meths.nvim_command('set all&')
+ command('set all&')
eq(
(
'$XDG_DATA_HOME/nvim'
@@ -745,11 +745,11 @@ describe('XDG defaults', function()
),
meths.nvim_get_option_value('runtimepath', {})
)
- meths.nvim_command('set runtimepath&')
- meths.nvim_command('set backupdir&')
- meths.nvim_command('set directory&')
- meths.nvim_command('set undodir&')
- meths.nvim_command('set viewdir&')
+ command('set runtimepath&')
+ command('set backupdir&')
+ command('set directory&')
+ command('set undodir&')
+ command('set viewdir&')
eq(
(
'\\, \\, \\,'