add deprecated notices

pull/296/head
ray-x 7 months ago
parent 0ce1009c92
commit 229d4ee728

@ -243,6 +243,7 @@ M.deprecated = function(cfg)
end end
if cfg.ts_fold ~= nil and type(cfg.ts_fold) == "boolean" then if cfg.ts_fold ~= nil and type(cfg.ts_fold) == "boolean" then
warn('ts_fold option changed, refer to README for more details') warn('ts_fold option changed, refer to README for more details')
cfg.ts_fold = { enable = cfg.ts_fold }
end end
end end
@ -254,8 +255,10 @@ local extend_config = function(opts)
if opts.debug then if opts.debug then
_NgConfigValues.debug = opts.debug _NgConfigValues.debug = opts.debug
end end
-- enable logs -- enable logs
require('navigator.util').setup() require('navigator.util').setup()
M.deprecated(opts)
for key, value in pairs(opts) do for key, value in pairs(opts) do
if _NgConfigValues[key] == nil then if _NgConfigValues[key] == nil then
warn( warn(
@ -324,7 +327,6 @@ local extend_config = function(opts)
-- vim.notify("Please put sumneko setup in lsp['lua_ls']", vim.log.levels.WARN) -- vim.notify("Please put sumneko setup in lsp['lua_ls']", vim.log.levels.WARN)
-- end -- end
M.deprecated(opts)
end end
M.config_values = function() M.config_values = function()

Loading…
Cancel
Save