Skip to content

Disable "missing-fields" warning in Lua LSP by default #503

Closed
@ashrasmun

Description

@ashrasmun

Hello,

I think it would be a great idea to extend lua_ls settings to ignore noisy warnings that are irrelevant for a beginner.

From:

    lua_ls = {
        Lua = {
            workspace = { checkThirdParty = false },
            telemetry = { enable = false },
        },
    },

To:

    lua_ls = {
        Lua = {
            workspace = { checkThirdParty = false },
            telemetry = { enable = false },
            diagnostics = {
                disable = { "missing-fields" },
            },
        },
    },

Reference: https://github.com/LuaLS/lua-language-server/wiki/Settings#diagnosticsdisable
I cannot see any template for suggestions, so I hope I won't be automatically dismissed 😊

Kind Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions