feat(kauffinger/lazyvim): new config with my own from kauffinger/lazyvim

This commit is contained in:
2024-02-25 17:37:23 +03:00
commit 33c2bc8397
35 changed files with 1542 additions and 0 deletions

43
lua/plugins/tailwind.lua Normal file
View File

@@ -0,0 +1,43 @@
return {
{
"neovim/nvim-lspconfig",
opts = {
servers = {
tailwindcss = {
settings = {
tailwindCSS = {
experimental = {
classRegex = {
"@?class\\(([^]*)\\)",
"'([^']*)'",
},
},
},
},
},
},
},
},
{
"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 LazyVim kind icon formatter
local format_kinds = opts.formatting.format
opts.formatting.format = function(entry, item)
format_kinds(entry, item) -- add icons
return require("tailwindcss-colorizer-cmp").formatter(entry, item)
end
end,
},
}