refactor(lsp-config.lua): remove tailwindcss specific logic from lsp config file

feat(tailwindcss-colors.lua): delete tailwindcss-colors.lua file
feat(tailwindcss-colors.lua): delete tailwindcss-colors setup call
feat(tailwindcss-colors.lua): delete tailwindcss-colors plugin configuration file
This commit is contained in:
David Ibia
2024-03-05 12:06:51 +01:00
parent c0200d8a4d
commit 193672949d
3 changed files with 0 additions and 15 deletions

View File

@@ -1,17 +1,11 @@
-- Setup language servers.
local lspconfig = require("lspconfig")
local cmp_nvim_lsp = require("cmp_nvim_lsp")
local tailwind_colors = require("tailwindcss-colors")
local opts = { noremap = true, silent = true }
local on_attach = function(client, bufnr)
opts.buffer = bufnr
-- Only attach when we are using the tailwindcss lsp
if client.name == "tailwindcss" then
tailwind_colors.buf_attach(bufnr)
end
-- Enable completion triggered by <c-x><c-o>
-- vim.bo[opts.buffer].omnifunc = "v:lua.vim.lsp.omnifunc"

View File

@@ -1,3 +0,0 @@
local tailwind_colors = require("tailwindcss-colors")
tailwind_colors.setup()

View File

@@ -1,6 +0,0 @@
return {
"themaxmarchuk/tailwindcss-colors.nvim",
config = function()
require("absolute.after.tailwindcss-colors")
end,
}