fix: don't show non-working configuration in deprecation suggestion (#946)

As reported here: https://github.com/hrsh7th/nvim-cmp/issues/936
This commit is contained in:
Greg Hurrell
2022-05-02 18:45:00 +02:00
committed by GitHub
parent bb5cac4dce
commit 101f4aa7ba

View File

@@ -197,7 +197,7 @@ config.normalize = function(c)
{ 'documentation', 'WarningMsg' }, { 'documentation', 'WarningMsg' },
{ ' is deprecated.\n', 'Normal' }, { ' is deprecated.\n', 'Normal' },
{ '[nvim-cmp] Please use ', 'Normal' }, { '[nvim-cmp] Please use ', 'Normal' },
{ 'window.documentation= "native"', 'WarningMsg' }, { 'window.documentation = cmp.config.window.bordered()', 'WarningMsg' },
{ ' instead.', 'Normal' }, { ' instead.', 'Normal' },
}, true, {}) }, true, {})
c.window = c.window or {} c.window = c.window or {}