fix: Handle nil config
This commit is contained in:
parent
c1a09a7a3d
commit
76c414adbf
1 changed files with 3 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue