diff options
author | Maria José Solano <majosolano99@gmail.com> | 2024-02-26 11:42:51 -0800 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-02-27 16:50:51 +0100 |
commit | 63f9c2da9aab52fa698fcbfdbc58ffd41794d28a (patch) | |
tree | 37742567d493c54245e6e0b1004f5d18b4319945 /runtime/lua/vim/lsp/util.lua | |
parent | 3d96e3f9f25389e979bb7f2417ec2135f79fbfbb (diff) | |
download | rneovim-63f9c2da9aab52fa698fcbfdbc58ffd41794d28a.tar.gz rneovim-63f9c2da9aab52fa698fcbfdbc58ffd41794d28a.tar.bz2 rneovim-63f9c2da9aab52fa698fcbfdbc58ffd41794d28a.zip |
feat(lsp): support completion itemDefaults
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index e371cb0e15..3973e606f8 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -551,6 +551,10 @@ end --- Can be used to extract the completion items from a --- `textDocument/completion` request, which may return one of --- `CompletionItem[]`, `CompletionList` or null. +--- +--- Note that this method doesn't apply `itemDefaults` to `CompletionList`s, and hence the returned +--- results might be incorrect. +--- ---@deprecated ---@param result table The result of a `textDocument/completion` request ---@return lsp.CompletionItem[] List of completion items |