Skip to content

Commit

Permalink
fix(setup): Using the setup func without args
Browse files Browse the repository at this point in the history
  • Loading branch information
judaew committed Sep 13, 2023
1 parent fc133bd commit 69bb4eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ vim.cmd.colorscheme("ronny")
priority = 1000,
config = function()
vim.cmd.colorscheme("ronny")
require("ronny").setup({})
require("ronny").setup()
end,
},
```
Expand Down
2 changes: 1 addition & 1 deletion lua/ronny/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function M.load()
end

function M.setup(user_config)
config = config.update(user_config)
config = config.update(user_config or {})

local colors = config.colors
local display = config.display
Expand Down

0 comments on commit 69bb4eb

Please sign in to comment.