diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-25 17:05:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 17:05:28 +0200 |
commit | 24352cba01395aeb1c29b651b6d06f472e0911d3 (patch) | |
tree | 7db56adbee1bfbde6b71cf367de5d42eb6acf127 /runtime | |
parent | 802a23926d237139822dda0ab712de3e1a98e5f9 (diff) | |
parent | 6219331c4d333e5a76129746021f972c21a040db (diff) | |
download | rneovim-24352cba01395aeb1c29b651b6d06f472e0911d3.tar.gz rneovim-24352cba01395aeb1c29b651b6d06f472e0911d3.tar.bz2 rneovim-24352cba01395aeb1c29b651b6d06f472e0911d3.zip |
Merge pull request #18528 from lewis6991/setwinopt
feat(api): add `win` and `buf` to `nvim_set_option_value`
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/api.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index e78f140e99..3ab7c77056 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -1674,12 +1674,18 @@ nvim_set_option_value({name}, {value}, {*opts}) global and local value are set unless otherwise specified with {scope}. + Note the options {win} and {buf} cannot be used together. + Parameters: ~ {name} Option name {value} New option value {opts} Optional parameters • scope: One of 'global' or 'local'. Analogous to |:setglobal| and |:setlocal|, respectively. + • win: |window-ID|. Used for setting window local + option. + • buf: Buffer number. Used for setting buffer + local option. nvim_set_var({name}, {value}) *nvim_set_var()* Sets a global (g:) variable. |