Skip to content

Commit

Permalink
fix: allow empty config in iron.core
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Jan 26, 2025
1 parent c2b2ba1 commit bb89cbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/iron/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,10 @@ core.setup = function(opts)
config.namespace = vim.api.nvim_create_namespace("iron")
vim.api.nvim_create_augroup("iron", {})

for k, v in pairs(opts.config) do
config[k] = v
if opts.config then
for k, v in pairs(opts.config) do
config[k] = v
end
end

if config.highlight_last ~= false then
Expand Down

0 comments on commit bb89cbb

Please sign in to comment.