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

config: Suppress spurious "missing field" warnings from LSP #444

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hsgg
Copy link

@hsgg hsgg commented Mar 17, 2024

This is a bit of an RFC, as I am not entirely sure it is the right place for the fix.

lua_ls marks fields that are missing in the configuration. Since they are not marked as optional in the Comment.nvim source code, I get a big "Missing required fields" warning as in the "Before" picture

This PR marks the fields explicitly as optional, giving the "After" picture. I modeled the fix after #hrsh7th/nvim-cmp/pull/1723 .

Before:
image

After:
image

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

1 participant