Skip to content

Commit

Permalink
add deprecated notices
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-x committed Nov 11, 2023
1 parent 0ce1009 commit 229d4ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/navigator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ M.deprecated = function(cfg)
end
if cfg.ts_fold ~= nil and type(cfg.ts_fold) == "boolean" then
warn('ts_fold option changed, refer to README for more details')
cfg.ts_fold = { enable = cfg.ts_fold }
end
end

Expand All @@ -254,8 +255,10 @@ local extend_config = function(opts)
if opts.debug then
_NgConfigValues.debug = opts.debug
end

-- enable logs
require('navigator.util').setup()
M.deprecated(opts)
for key, value in pairs(opts) do
if _NgConfigValues[key] == nil then
warn(
Expand Down Expand Up @@ -324,7 +327,6 @@ local extend_config = function(opts)
-- vim.notify("Please put sumneko setup in lsp['lua_ls']", vim.log.levels.WARN)
-- end

M.deprecated(opts)
end

M.config_values = function()
Expand Down

0 comments on commit 229d4ee

Please sign in to comment.