mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-25 18:28:44 +02:00
Updated 7. Example Custom Plugins (markdown)
parent
971985294c
commit
eec363d573
1 changed files with 34 additions and 1 deletions
|
@ -2676,4 +2676,37 @@ return {
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
# tailwindcss-colorizer-cmp.nvim
|
||||||
|
```lua
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"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,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Sumber :
|
||||||
|
https://github.com/roobert/tailwindcss-colorizer-cmp.nvim
|
Loading…
Add table
Add a link
Reference in a new issue