fix: Handle nil config

This commit is contained in:
Jan K9f 2025-07-28 19:46:17 +02:00
commit 76c414adbf
Signed by: jank
GPG key ID: 22BEAC760B3333D6

View file

@ -10,9 +10,11 @@ M.options = {
function M.setup(user_options) function M.setup(user_options)
if user_options and type(user_options) == "table" then if user_options and type(user_options) == "table" then
for k, v in pairs(user_options) do for k, v in pairs(user_options) do
if v ~= nil then
M.options[k] = v M.options[k] = v
end end
end end
end
local map_opts = { local map_opts = {
desc = "Swaps the quotes around", desc = "Swaps the quotes around",