Skip to content

lua_ls on_init Clear Diagnostic Warning #2133

Description

@mattcargile

Before Reporting an Issue

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

  • I have read the appropriate plugin's documentation.

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

  • I have ran :checkhealth and so no obvious issue.

  • 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

Diagnostic warning on the on_init method.

To Reproduce

  1. Open init.lua

Potential Fix

        local current_settings = client.config.settings --[[@as lspconfig.settings.lua_ls]]
        current_settings.Lua = vim.tbl_deep_extend('force', current_settings.Lua or {}, {

Desktop

  • OS: Windows
  • Terminal: Wezterm

Neovim Version

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