diff options
| author | Kyle <50718101+kylesower@users.noreply.github.com> | 2026-06-28 12:20:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-28 13:20:56 -0400 |
| commit | f34ee3da80e864ff545169bc2ced856bf5822260 (patch) | |
| tree | c2df99a0bb3373efbc88cd3e0d66da26e328087f /runtime/lua/vim/_meta/api_keysets.gen.lua | |
| parent | a5aa62e37b82214a1d4d1e0a54d193b155fb340c (diff) | |
| download | rneovim-f34ee3da80e864ff545169bc2ced856bf5822260.tar.gz rneovim-f34ee3da80e864ff545169bc2ced856bf5822260.tar.bz2 rneovim-f34ee3da80e864ff545169bc2ced856bf5822260.zip | |
feat(api): nvim_set_option_value(operation=...) #39849
Problem:
`nvim_set_option_value` cannot "update" options similar to `:set opt=`,
`:set opt+=`, etc. The Lua impls of "vim.opt" / "vim.o" have incomplete,
bespoke reimplementations of those operations.
ref #38420
Solution:
- Add `operation` param to `nvim_set_option_value`, which may be "set",
"append", "prepend", or "remove".
- Use this feature to implement `vim.opt` / `vim.o`.
Diffstat (limited to 'runtime/lua/vim/_meta/api_keysets.gen.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/api_keysets.gen.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/api_keysets.gen.lua b/runtime/lua/vim/_meta/api_keysets.gen.lua index 3f5a465984..905d908811 100644 --- a/runtime/lua/vim/_meta/api_keysets.gen.lua +++ b/runtime/lua/vim/_meta/api_keysets.gen.lua @@ -381,7 +381,9 @@ error('Cannot require a meta file') --- @class vim.api.keyset.option --- @field buf? integer +--- @field dry_run? boolean --- @field filetype? string +--- @field operation? string --- @field scope? string --- @field tab? integer --- @field win? integer |