Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Using deprecated lspconfig.tailwindcss.setup(conf) #80

@garrett-hopper

Description

@garrett-hopper

Describe the bug
neovim/nvim-lspconfig/README.md#L39

nvim-lspconfig only provides configs now and vim.lsp.enable() should be used instead, and the config should be passed to vim.lsp.config().

An additional benefit of this is that it prevents multiple LSP servers from being configured. mason-lspconfig.nvim automatically calls vim.lsp.enable() for LSP servers it installs, which currently results in 2 separate tailwind LSP servers being configured. (One with the lspconfig defaults and one with tailwind-tools.nvim's config.) I believe working around this in a user's config would require server.override = false and also manually setting up the configuration tailwind-tools.nvim would otherwise do. Using vim.lsp.config instead should prevent this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions