File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ config.is_native_menu = function()
154
154
end
155
155
156
156
--- Normalize mapping key
157
- --- @param c cmp.ConfigSchema
157
+ --- @param c any
158
158
--- @return cmp.ConfigSchema
159
159
config .normalize = function (c )
160
160
-- make sure c is not 'nil'
@@ -184,6 +184,20 @@ config.normalize = function(c)
184
184
c .view .entries = c .view .entries or ' native'
185
185
end
186
186
187
+ -- Notice documentation.
188
+ if c .documentation ~= nil then
189
+ vim .api .nvim_echo ({
190
+ { ' [nvim-cmp] ' , ' Normal' },
191
+ { ' documentation' , ' WarningMsg' },
192
+ { ' is deprecated.\n ' , ' Normal' },
193
+ { ' [nvim-cmp] Please use ' , ' Normal' },
194
+ { ' window.documentation= "native"' , ' WarningMsg' },
195
+ { ' instead.' , ' Normal' },
196
+ }, true , {})
197
+ c .window = c .window or {}
198
+ c .window .documentation = c .documentation
199
+ end
200
+
187
201
-- Notice sources.[n].opts
188
202
if c .sources then
189
203
for _ , s in ipairs (c .sources ) do
You can’t perform that action at this time.
0 commit comments