diff options
| author | bfredl <bjorn.linse@gmail.com> | 2023-05-21 20:16:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-21 20:16:05 +0200 |
| commit | 384a3bc308c95c9511eff1b85cd55357bdaedd9e (patch) | |
| tree | 4ec9a0ae9095af1dbacade1e10e53a3f4d842417 /test/functional/legacy/autocmd_option_spec.lua | |
| parent | edf9a897f089191f2b43985f7ebc11a0b540bb44 (diff) | |
| parent | 1fe1bb084d0099fc4f9bfdc11189485d0f74b75a (diff) | |
| download | rneovim-384a3bc308c95c9511eff1b85cd55357bdaedd9e.tar.gz rneovim-384a3bc308c95c9511eff1b85cd55357bdaedd9e.tar.bz2 rneovim-384a3bc308c95c9511eff1b85cd55357bdaedd9e.zip | |
Merge pull request #23670 from famiu/refactor/deprecate_opt_api
refactor(options): deprecate nvim[_buf|_win]_[gs]et_option
Diffstat (limited to 'test/functional/legacy/autocmd_option_spec.lua')
| -rw-r--r-- | test/functional/legacy/autocmd_option_spec.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/legacy/autocmd_option_spec.lua b/test/functional/legacy/autocmd_option_spec.lua index e00b468c16..8f17f509f5 100644 --- a/test/functional/legacy/autocmd_option_spec.lua +++ b/test/functional/legacy/autocmd_option_spec.lua @@ -631,24 +631,24 @@ describe('au OptionSet', function() it('should trigger if a boolean option be set globally', function() set_hook('autochdir') - nvim.set_option('autochdir', true) - eq(true, nvim.get_option('autochdir')) + nvim.set_option_value('autochdir', true, {scope='global'}) + eq(true, nvim.get_option_value('autochdir', {scope='global'})) expected_combination({'autochdir', 0, '', 0, 1, 'global', 'setglobal'}) end) it('should trigger if a number option be set globally', function() set_hook('cmdheight') - nvim.set_option('cmdheight', 5) - eq(5, nvim.get_option('cmdheight')) + nvim.set_option_value('cmdheight', 5, {scope='global'}) + eq(5, nvim.get_option_value('cmdheight', {scope='global'})) expected_combination({'cmdheight', 1, '', 1, 5, 'global', 'setglobal'}) end) it('should trigger if a string option be set globally', function() set_hook('ambiwidth') - nvim.set_option('ambiwidth', 'double') - eq('double', nvim.get_option('ambiwidth')) + nvim.set_option_value('ambiwidth', 'double', {scope='global'}) + eq('double', nvim.get_option_value('ambiwidth', {scope='global'})) expected_combination({'ambiwidth', 'single', '', 'single', 'double', 'global', 'setglobal'}) end) end) |
