lspconfig deprecated and tailwind-tools.nvim is now archived.

I upgraded to Neovim version 11 and got this errors

The require('lspconfig') "framework" is deprecated, use vim.lsp.config (see :help lspconfig-nvim-0.11) instead. Feature will be removed in nvim-lspconfig v3.0.0 stack traceback: .../.local/share/nvim/lazy/nvim-lspconfig/lua/lspconfig.lua:81: in function '__index' ...nvim/lazy/tailwind-tools.nvim/lua/tailwind-tools/lsp.lua:147: in function 'setup' ...vim/lazy/tailwind-tools.nvim/lua/tailwind-tools/init.lua:81: in function 'setup' ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:387: in function <...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:385> [C]: in function 'xpcall' .../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:135: in function 'try' ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:395: in function 'config' ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:362: in function '_load' ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:197: in function 'load' ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:354: in function <...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:353> [C]: in function 'xpcall' .../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:135: in function 'try' ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:353: in function '_load' ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:197: in function 'load' ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:127: in function 'startup'

Now, I need to
1. refactor my lua files following this guide,
2. look for alternative for tailwind-tools.nvim.

Any suggestions? please? is there an easier way?

I love using neovim but every Neovim upgrade or Lazy.nvim sync, I get issues.

8 comments · 17% upvoted · other discussions

comments

EstudiandoAjedrez

The lspconfig update has been up for some months now. It is very easy to do the change. You can check the lspconfig readme of search here as has been asked a lot. As for tailwind-tools, did it broke? Getting archived doesn't mean it can't be used anymore.

bionic_engineer [OP]

when I enable this tailwind

```
return {

"luckasRanarison/tailwind-tools.nvim",

dependencies = { "nvim-treesitter/nvim-treesitter" },

event = "BufEnter",

ft = {"javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "html"},

opts = {},

}
```

I get an error

https://preview.redd.it/48q5e9vfalzf1.png?width=1385&format=png&auto=webp&s=0264bb958d5b670b6f8acae25a5ccdc80a05846d

I researched and cannot find an alternative other tailwind plugin.

kezhenxu94
bionic_engineer [OP]

Your nvim setup is different from mine. Let me try to copy, thank you so much.

bugduck68

The tailwindlsp is great, I recommend it for sure

pau1rw

This is what I did to update my config to the built in lsp support.

10F1

Try lazyvim, afaik all that works fine on it, I don't personally use tailswind