Skip to content

Replace outdated require('lspconfig')[server_name].setup() #1502

Description

@oiiiiiiii

According to the readme of nvim-lspconfig the syntax require('lspconfig')[server_name].setup() is outdated and instead

vim.lsp.config(server_name, {
  -- Server-specific settings. See `:help lsp-quickstart`
})

should be used. This old syntax is used in the mason-lspconfig setup.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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