Theme hlchunk

- Implement various themes for hkchunk
This commit is contained in:
2024-07-16 11:04:44 -04:00
parent 0c310abc09
commit 11b4110201
+32 -3
View File
@@ -18,15 +18,38 @@ return {
}, },
{ {
"shellRaining/hlchunk.nvim", "shellRaining/hlchunk.nvim",
event = "BufEnter",
config = function() config = function()
local cb = function() local cb = function()
if vim.g.colors_name == "tokyonight" then if vim.g.colors_name == "tokyonight" then
return "#806d9c" return "#806d9c"
elseif vim.g.colors_name:find("catppuccin") then elseif vim.g.colors_name:find("catppuccin") then
local catpalette = require("catppuccin.palettes").get_palette() local catpalette = require("catppuccin.palettes").get_palette()
return catpalette.rosewater return catpalette.green
elseif vim.g.colors_name == "monochrome" then
return "#CCCCCC"
elseif vim.g.colors_name == "gruvbox" then
return "#a9b665"
elseif vim.g.colors_name == "dracula" then
return "#50fa7b"
elseif vim.g.colors_name == "onedark" then
return "#98C379"
elseif vim.g.colors_name == "nightfox" then
return "#98C379"
elseif vim.g.colors_name == "nord" then
return "#81A1C1"
elseif vim.g.colors_name == "kanagawa" then
return "#73C8AD"
elseif vim.g.colors_name == "everforest" then
return "#8FBCBB"
elseif vim.g.colors_name == "github_dark" then
return "#FFFFFF"
elseif vim.g.colors_name == "github_light" then
return "#3f3f3f"
elseif vim.g.colors_name == "neofusion" then
return "#420ADD"
else else
return "#90FDA9" return "#7581FF"
end end
end end
require("hlchunk").setup({ require("hlchunk").setup({
@@ -37,7 +60,13 @@ return {
enable = true, enable = true,
}, },
indent = { indent = {
enable = true, enable = function()
if vim.g.colors_name == "monochrome" then
return false
else
return true
end
end,
}, },
}) })
end, end,