add and config colorizer
This commit is contained in:
parent
4b9e58a578
commit
57142d193b
13
init.lua
13
init.lua
|
|
@ -571,12 +571,25 @@ cmp.setup {
|
|||
{ name = 'luasnip' },
|
||||
},
|
||||
}
|
||||
|
||||
require("cmp").setup({
|
||||
formatting = {
|
||||
format = require("tailwindcss-colorizer-cmp").formatter
|
||||
}
|
||||
})
|
||||
|
||||
require("colorizer").setup {
|
||||
user_default_options = {
|
||||
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
||||
AARRGGBB = true, -- 0xAARRGGBB hex codes
|
||||
rgb_fn = true, -- CSS rgb() and rgba() functions
|
||||
hsl_fn = true, -- CSS hsl() and hsla() functions
|
||||
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
||||
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
||||
tailwind = true, -- Enable tailwind colors
|
||||
sass = { enable = true, parsers = { "css" }, }, -- Enable sass colors
|
||||
},
|
||||
}
|
||||
|
||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@
|
|||
"neodev.nvim": { "branch": "main", "commit": "80487e4f7bfa11c2ef2a1b461963db019aad6a73" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "0f04d78619cce9a5af4f355968040f7d675854a1" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "51260c02a8ffded8e16162dcf41a23ec90cfba62" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "dde3084106a70b9a79d48f426f6d6fec6fd203f7" },
|
||||
"nvim-dap": { "branch": "master", "commit": "4048f37bc8b1a36fe1f5fde0df7d84aef71380e4" },
|
||||
"nvim-dap-go": { "branch": "main", "commit": "a5cc8dcad43f0732585d4793deb02a25c4afb766" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "34160a7ce6072ef332f350ae1d4a6a501daf0159" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "d0467b9574b48429debf83f8248d8cee79562586" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "198015cca117d41e7d1fd404e0cdf3235084749b" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "1920285ec11654072f14d07258e73ef792ac9005" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "e69a504baf2951d52e1f1fbb05145d43f236cbf1" },
|
||||
"onedark.nvim": { "branch": "master", "commit": "b9acd92ded2ba155867ca5af9d618e933d96e3b0" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
|
||||
|
|
|
|||
|
|
@ -38,10 +38,10 @@ return {
|
|||
|
||||
{ 'fatih/vim-go' },
|
||||
|
||||
-- { 'sheerun/vim-polyglot' },
|
||||
|
||||
{ 'evanleck/vim-svelte' },
|
||||
|
||||
{ 'NvChad/nvim-colorizer.lua' },
|
||||
|
||||
{
|
||||
"roobert/tailwindcss-colorizer-cmp.nvim",
|
||||
-- optionally, override the default options:
|
||||
|
|
@ -51,6 +51,5 @@ return {
|
|||
})
|
||||
end
|
||||
},
|
||||
{ 'norcalli/nvim-colorizer.lua' },
|
||||
{ 'junegunn/gv.vim' }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue