refactor(options): deprecate nvim[_buf|_win]_[gs]et_option

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: famiu <famiuhaque@protonmail.com>
This commit is contained in:
Lewis Russell
2022-12-19 16:37:45 +00:00
committed by Famiu Haque
parent e3e6fadfd8
commit 1fe1bb084d
87 changed files with 725 additions and 785 deletions

View File

@@ -1328,11 +1328,11 @@ function! s:OpenHoverPreview(lines, filetype) abort
\ 'style': 'minimal',
\ })
if a:filetype isnot v:null
if a:filetype isnot v:null
call nvim_set_option_value('filetype', a:filetype, { 'win' : float_win_id })
endif
call nvim_buf_set_option(buf, 'modified', 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