Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emtpy table in setup throws error #401

Closed
jolars opened this issue Jan 20, 2025 · 0 comments · Fixed by #402
Closed

Emtpy table in setup throws error #401

jolars opened this issue Jan 20, 2025 · 0 comments · Fixed by #402

Comments

@jolars
Copy link
Contributor

jolars commented Jan 20, 2025

If I have an empty table in my setup for iron:

require("iron.core").setup({})

I get this error:

bad argument #1 to 'pairs' (table expected, got nil)

I am guessing that this is the culprit:

iron.nvim/lua/iron/core.lua

Lines 656 to 658 in 916538e

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

jolars added a commit to jolars/iron.nvim that referenced this issue Jan 20, 2025
jolars added a commit to jolars/iron.nvim that referenced this issue Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant