Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catppuccin mocha #5

Merged
merged 36 commits into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: update nvchad colorizer opts
  • Loading branch information
wochap committed Sep 4, 2023
commit 7f5b8f638fb8e1b9f5b596be8d88b66b92910695
6 changes: 6 additions & 0 deletions lua/custom/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ local plugins = {
"williamboman/mason.nvim",
enabled = false,
},
{
"NvChad/nvim-colorizer.lua",
opts = function()
return require("custom.plugins.overrides.others").colorizer
end,
},

-- custom
{
Expand Down
20 changes: 20 additions & 0 deletions lua/custom/plugins/overrides/others.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,26 @@ M.luasnip = {
end,
}

M.colorizer = {
user_default_options = {
names = false, -- "Name" codes like Blue or blue
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
-- Available modes for `mode`: foreground, background, virtualtext
mode = "virtualtext", -- Set the display mode.
-- Available methods are false / true / "normal" / "lsp" / "both"
-- True is same as normal
tailwind = false, -- Enable tailwind colors
-- parsers can contain values used in |user_default_options|
sass = { enable = true, parsers = { "css" } }, -- Enable sass colors
virtualtext = "■",
},
}

M.which_key = function()
local wk = require "which-key"

Expand Down