Skip to content

sumneko_lua is deprecated, use lua_ls instead #171

@jschuur

Description

@jschuur

After updating plugins today (PackerSync) I get the following error when I launch neovim:

sumneko_lua is deprecated, use lua_ls instead. See :h deprecated
This function will be removed in lspconfig version 0.2.0
stack traceback:
        .../site/pack/packer/start/nvim-lspconfig/lua/lspconfig.lua:41: in function '__index'

However, a simple renaming of sumneko_lua to lua_ls in my init.lua did not do the trick

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

This now results in

[mason-lspconfig.nvim] Server "lua_ls" is not a valid entry in ensure_installed. Make sure to only provide lspconfig server names.

Mason lists lua-language-server as installed.

This would seem to be related to this renaming.

The renamed repo links here for install instructions, but I'm not sure why I'm supposed to do a full brew install here, since I didn't use brew to set up the LSP under the old name.

Is this an issue with things being slightly out of sync, since this rename just popped up in the nightlies?

At this point, I've uninstalled lua-language-server in Mason and commented out the above block in init.lua to make the error go away.

I'm on macOS, NVIM v0.8.3.

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