We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccf02f5 commit fb9f374Copy full SHA for fb9f374
lua/blink/cmp/sources/lsp.lua
@@ -111,10 +111,17 @@ function lsp:get_completions(context, callback)
111
-- convert full response to our internal format
112
else
113
local defaults = response.result and response.result.itemDefaults or {}
114
+ -- TODO: excluding editRange for now
115
+ local known_defaults = {
116
+ 'commitCharacters',
117
+ 'insertTextFormat',
118
+ 'insertTextMode',
119
+ 'data',
120
+ }
121
for _, item in ipairs(response.result.items) do
122
-- add defaults to the item
123
for key, value in pairs(defaults) do
- item[key] = value
124
+ if vim.tbl_contains(known_defaults, key) then item[key] = item[key] or value end
125
end
126
127
0 commit comments