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

Warning showing when requiring the ('mason.lspconfig').setup #1305

Open
nehamand opened this issue Jan 12, 2025 · 2 comments
Open

Warning showing when requiring the ('mason.lspconfig').setup #1305

nehamand opened this issue Jan 12, 2025 · 2 comments

Comments

@nehamand
Copy link

Before Reporting an Issue

  • I have read the kickstart.nvim README.md.

  • I have read the appropiate plugin's documentation.

  • I have searched that this issue has not been reported before.

  • [x ] By checking this, I confirm that the above steps are completed. I understand leaving this unchecked will result in this report being closed immediately.

Describe the bug

On line 669 on the init.lua file, there is a warning stating that the mason.lspconfig setup is missing required fields in type MasonLspconfigSettings: ensure_installed, automatic_installation [missing-fields].

To Reproduce

  1. Just clone the repo and open it in neovim, go the line 669 and you will see the lua-lsp pointing to the warning.

Desktop

  • OS: Mac Os Sequoia 15.1
  • Terminal: Warp

Neovim Version

0.10.3
Captura de Tela 2025-01-12 às 00 24 06
@BALAJI24092001
Copy link

I have the same issue, the LSP for lua seems to generate those warnings. There won't be any problem with the highlighted warnings. But I wouldn't want them to pop on screen either. I added the ensure_installed = {} which removed one warning, but the other one I didn't. It should probably work. Add them and leave them blank.

@nhld
Copy link
Contributor

nhld commented Jan 13, 2025

Hi,
You might want to uncomment this line:

kickstart.nvim/init.lua

Lines 639 to 645 in db4867a

Lua = {
completion = {
callSnippet = 'Replace',
},
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
-- diagnostics = { disable = { 'missing-fields' } },
},

Hope this helps!

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

No branches or pull requests

3 participants