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 /runtime/pack/dist/opt/termdebug/plugin | |
| 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 'runtime/pack/dist/opt/termdebug/plugin')
| -rw-r--r-- | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 2c3f61c9d4..43c3d7541f 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -1328,11 +1328,11 @@ function! s:OpenHoverPreview(lines, filetype) abort \ }) if a:filetype isnot v:null - call nvim_win_set_option(float_win_id, 'filetype', a:filetype) + call nvim_set_option_value('filetype', a:filetype, { 'win' : float_win_id }) endif - call nvim_buf_set_option(buf, 'modified', v:false) - call nvim_buf_set_option(buf, 'modifiable', v:false) + call nvim_set_option_value('modified', v:false, { 'buf' : buf }) + call nvim_set_option_value('modifiable', v:false, { 'buf' : buf }) " Unlike preview window, :pclose does not close window. Instead, close " hover window automatically when cursor is moved. |