mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
add: miniaimate
This commit is contained in:
parent
e50fb19878
commit
72ff763f68
15 changed files with 897 additions and 607 deletions
37
lua/plugins/tailwind.lua
Normal file
37
lua/plugins/tailwind.lua
Normal file
|
@ -0,0 +1,37 @@
|
|||
local M = {}
|
||||
if vim.g.pcode_tailwindcolorizer then
|
||||
M.tailwind = {
|
||||
{
|
||||
"NvChad/nvim-colorizer.lua",
|
||||
opts = {
|
||||
user_default_options = {
|
||||
tailwind = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
{ "roobert/tailwindcss-colorizer-cmp.nvim", config = true },
|
||||
},
|
||||
opts = function(_, opts)
|
||||
-- original kind icon formatter
|
||||
local format_kinds = opts.formatting.format
|
||||
opts.formatting.format = function(entry, item)
|
||||
format_kinds(entry, item) -- add icons
|
||||
local lspkind = require("tailwindcss-colorizer-cmp").formatter(entry, item)
|
||||
if lspkind.kind == "XX" then
|
||||
lspkind.kind = " "
|
||||
end
|
||||
return lspkind
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
else
|
||||
M.tailwind = {}
|
||||
end
|
||||
|
||||
return {
|
||||
M.tailwind,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue