kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

fix(mason-lspconfig): add missing field `automatic_enable` in setup

Open SetsuikiHyoryu opened this issue 7 months ago • 2 comments

I know this field is set by default, but if it's not explicitly written, Lua will throw an error:

Diagnostics:
1. Missing required fields in type `MasonLspconfigSettings`: `automatic_enable` [missing-fields]

SetsuikiHyoryu avatar May 12 '25 08:05 SetsuikiHyoryu

automatic_enable has been introduced in the latest version of Mason 2.0.

I think this change should be included in https://github.com/nvim-lua/kickstart.nvim/pull/1475 in case.

nickgnd avatar May 12 '25 12:05 nickgnd

automatic_enable has been introduced in the latest version of Mason 2.0.

I think this change should be included in #1475 in case.

@nickgnd I'm agree with you.

SetsuikiHyoryu avatar May 12 '25 15:05 SetsuikiHyoryu

This field automatic_enable was introduced in mason v2 but also automatic_installation and handlers were deprecated. As mentioned above, a more complete migration to mason v2 is being done in https://github.com/nvim-lua/kickstart.nvim/pull/1475

Please consider closing this PR to avoid confusion.

carloscalla avatar May 16 '25 09:05 carloscalla

Please consider closing this PR to avoid confusion.

Ok.

SetsuikiHyoryu avatar May 17 '25 06:05 SetsuikiHyoryu