This is an automated archive made by the Lemmit Bot.

The original was posted on /r/neovim by /u/Beneficial_Ad_4289 on 2024-09-05 09:33:23+00:00.


I read the pull request but i didn’t find what to change in the configuration.

I use mason so i tried to change from:

    `-- install required servers`

    `require("mason").setup()`

    `require("mason-lspconfig").setup({`

        `ensure_installed = { "bashls", "html", "tsserver" }`

    `})`

    `-- attach servers to neovim`

    `local lspconfig = require("lspconfig")`

    `lspconfig.tsserver.setup({})`

    `lspconfig.bashls.setup({})`

    `lspconfig.html.setup({})`

to:

    `-- install required servers`

    `require("mason").setup()`

    `require("mason-lspconfig").setup({`

        `ensure_installed = { "bashls", "html", "ts_ls" }`

    `})`

    `-- attach servers to neovim`

    `local lspconfig = require("lspconfig")`

    `lspconfig.ts_ls.setup({})`

    `lspconfig.bashls.setup({})`

    `lspconfig.html.setup({})`

But it says that “ts_ls” is not a valid ensure_installed entry.

This is probably a skill issue but I don’t know how to fix this. Can anyone help?