aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2022-06-20 08:20:06 -0600
committerGregory Anders <greg@gpanders.com>2022-06-20 09:16:21 -0600
commit58d028f64bb0ddc80b6201906880182d14ad9a3c (patch)
tree2c68a97dd4101016b8a7cc3357f8bfdbc5d69153 /runtime
parent605631ac2992176f7286409320a9971bb5b9cd69 (diff)
downloadrneovim-58d028f64bb0ddc80b6201906880182d14ad9a3c.tar.gz
rneovim-58d028f64bb0ddc80b6201906880182d14ad9a3c.tar.bz2
rneovim-58d028f64bb0ddc80b6201906880182d14ad9a3c.zip
feat(api): add "buf" and "win" to nvim_get_option_value
These mirror their counterparts in nvim_set_option_value.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 331a4fe700..1d7a783bf1 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -2037,15 +2037,17 @@ nvim_get_option_value({name}, {*opts}) *nvim_get_option_value()*
matches that of |:set|: the local value of an option is
returned if it exists; otherwise, the global value is
returned. Local values always correspond to the current buffer
- or window. To get a buffer-local or window-local option for a
- specific buffer or window, use |nvim_buf_get_option()| or
- |nvim_win_get_option()|.
+ or window, unless "buf" or "win" is set in {opts}.
Parameters: ~
{name} Option name
{opts} Optional parameters
- • scope: One of 'global' or 'local'. Analogous to
+ • scope: One of "global" or "local". Analogous to
|:setglobal| and |:setlocal|, respectively.
+ • win: |window-ID|. Used for getting window local
+ options.
+ • buf: Buffer number. Used for getting buffer
+ local options. Implies {scope} is "local".
Return: ~
Option value