diff options
| author | glepnir <glephunter@gmail.com> | 2025-11-19 12:23:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-18 20:23:50 -0800 |
| commit | 4998b8d7b5f948a6584ae44902001fb1c2bac95d (patch) | |
| tree | 773bdf3156a984a05b87ffc91f0430c3486bf9ad /runtime/lua/vim/_meta/api.lua | |
| parent | c56734017173d3d76e03f28ea2a16d4856899e22 (diff) | |
| download | rneovim-4998b8d7b5f948a6584ae44902001fb1c2bac95d.tar.gz rneovim-4998b8d7b5f948a6584ae44902001fb1c2bac95d.tar.bz2 rneovim-4998b8d7b5f948a6584ae44902001fb1c2bac95d.zip | |
feat(api): nvim_win_set_config accepts unchanged "noautocmd" #36463
Problem: Cannot reuse same config with noautocmd for both window
creation and updates, even when value is unchanged.
Solution: Only reject noautocmd changes for existing windows.
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/api.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index f88260bc6b..3cf360374d 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -1862,7 +1862,8 @@ function vim.api.nvim_open_term(buffer, opts) end --- Value can be one of "left", "center", or "right". --- Default is `"left"`. --- - noautocmd: If true then all autocommands are blocked for the duration of ---- the call. +--- the call. Once set at window creation, this option cannot be modified +--- later through `nvim_win_set_config()`. --- - fixed: If true when anchor is NW or SW, the float window --- would be kept fixed even if the window would be truncated. --- - hide: If true the floating window will be hidden and the cursor will be invisible when |