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 config annotation for note_frontmatter_func #553

Merged
merged 4 commits into from
May 1, 2024
Merged

Conversation

parmort
Copy link
Contributor

@parmort parmort commented Apr 25, 2024

Running the setup function as follows would throw an LSP warning because no return type was given in the annotation for note_frontmatter_func. I just added the return type of table to the field annotation.

require('obsidian').setup({
  note_frontmatter_func = function(note)
    return {}
  end
})

Copy link
Owner

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@epwalsh epwalsh merged commit e68be70 into epwalsh:main May 1, 2024
6 of 7 checks passed
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.

2 participants