mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 11:40:36 +00:00
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:
@@ -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"
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
local tailwind_colors = require("tailwindcss-colors")
|
||||
|
||||
tailwind_colors.setup()
|
||||
@@ -1,6 +0,0 @@
|
||||
return {
|
||||
"themaxmarchuk/tailwindcss-colors.nvim",
|
||||
config = function()
|
||||
require("absolute.after.tailwindcss-colors")
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user