aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_vimdoc.py
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2022-05-25 11:17:46 -0600
committerGregory Anders <greg@gpanders.com>2022-06-20 09:16:21 -0600
commit87a68b6a3ab483c6b126fa8071066a112f9386a3 (patch)
treeb472cb991e92731a0be588a101914942264cbff6 /scripts/gen_vimdoc.py
parent58d028f64bb0ddc80b6201906880182d14ad9a3c (diff)
downloadrneovim-87a68b6a3ab483c6b126fa8071066a112f9386a3.tar.gz
rneovim-87a68b6a3ab483c6b126fa8071066a112f9386a3.tar.bz2
rneovim-87a68b6a3ab483c6b126fa8071066a112f9386a3.zip
refactor: use nvim_{get,set}_option_value for vim.{b,w}o
`nvim_get_option_value` and `nvim_set_option_value` better handle unsetting local options. For instance, this is currently not possible: vim.bo.tagfunc = nil This does not work because 'tagfunc' is marked as "local to buffer" and does not have a fallback global option. However, using :setlocal *does* work as expected :setlocal tagfunc= `nvim_set_option_value` behaves more like :set and :setlocal (by design), so using these as the underlying API functions beneath vim.bo and vim.wo makes those two tables act more like :setlocal. Note that vim.o *already* uses `nvim_set_option_value` under the hood, so that vim.o behaves like :set.
Diffstat (limited to 'scripts/gen_vimdoc.py')
0 files changed, 0 insertions, 0 deletions