diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-05-11 13:49:43 +0100 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2022-05-17 14:48:10 +0100 |
commit | 6219331c4d333e5a76129746021f972c21a040db (patch) | |
tree | 29938b911e1164f4757306cd6fcceaf1f9bcd709 /runtime | |
parent | 6613f58cebde7db4e69709b84d511c32a7c4ce32 (diff) | |
download | rneovim-6219331c4d333e5a76129746021f972c21a040db.tar.gz rneovim-6219331c4d333e5a76129746021f972c21a040db.tar.bz2 rneovim-6219331c4d333e5a76129746021f972c21a040db.zip |
feat(api): add win and buf to nvim_set_option_value
Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com>
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 812208ca31..cb76c87bb0 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -1668,12 +1668,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. |