Skip to content

Commit

Permalink
fix: don't mark config as defaultConf so it won't create diagnostics
Browse files Browse the repository at this point in the history
If it's marked as defaultConf, then it will create a diagnostic for
missing fields and we don't want that.
  • Loading branch information
cameronr committed Jul 29, 2024
1 parent b0f43cb commit 95c735b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/auto-session/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ local function check_config()
end
end

---Setup function for AutoSession
---@param config defaultConf config for auto session
---Setup function for AutoSession. Config is not marked as defaultConf so it doesn't
---create a diagnostic about missing fields.
---@param config table|nil Config for auto session
function AutoSession.setup(config)
AutoSession.conf = vim.tbl_deep_extend("force", AutoSession.conf, config or {})
Lib.setup(AutoSession.conf)
Expand Down

0 comments on commit 95c735b

Please sign in to comment.