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

fix: accept preset as a table #582

Merged
merged 1 commit into from
Aug 30, 2023
Merged

fix: accept preset as a table #582

merged 1 commit into from
Aug 30, 2023

Conversation

gmerzu
Copy link
Contributor

@gmerzu gmerzu commented Aug 29, 2023

The following config fails:

require("noice").setup({
  presets = {
    foo = {}
  }
})

with the error "expected table, got nil"

However, according to the doc (and the code) it should be acceptable to use a table in presents, the parameter presets is:
@class NoicePresets: table<string, NoicePreset|boolean>

This small PR fixes this issue.

@folke folke merged commit 53d613c into folke:main Aug 30, 2023
@folke
Copy link
Owner

folke commented Aug 30, 2023

thanks!

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 this pull request may close these issues.

None yet

2 participants