diff options
author | Famiu Haque <famiuhaque@protonmail.com> | 2024-05-24 15:57:46 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-24 11:57:46 +0200 |
commit | a616272f568a9492580abfd22ab460457ecdbfa3 (patch) | |
tree | 54d644a7045c54ada00c64945fa2327330b14ccb /runtime/lua/vim/_meta/vvars.lua | |
parent | d123202ae6ef3f046d5b6579c194dca82ddb8a8f (diff) | |
download | rneovim-a616272f568a9492580abfd22ab460457ecdbfa3.tar.gz rneovim-a616272f568a9492580abfd22ab460457ecdbfa3.tar.bz2 rneovim-a616272f568a9492580abfd22ab460457ecdbfa3.zip |
feat(complete): specify reason for CompleteDone
Problem: `CompleteDone` currently does not specify the reason for why completion was done, which is problematic for completion plugins as they cannot know whether the event was triggered due to the completion being canceled, accepted, or for some other reason.
Solution: Add a `reason` key to `v:event`, which is set by `CompleteDone` to indicate why completion ended.
Diffstat (limited to 'runtime/lua/vim/_meta/vvars.lua')
-rw-r--r-- | runtime/lua/vim/_meta/vvars.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/vvars.lua b/runtime/lua/vim/_meta/vvars.lua index 1660d1dd6c..e00402ab3f 100644 --- a/runtime/lua/vim/_meta/vvars.lua +++ b/runtime/lua/vim/_meta/vvars.lua @@ -195,6 +195,7 @@ vim.v.errors = ... --- changed_window Is `v:true` if the event fired while --- changing window (or tab) on `DirChanged`. --- status Job status or exit code, -1 means "unknown". `TermClose` +--- reason Reason for completion being done. `CompleteDone` --- @type any vim.v.event = ... |