enc: add catppucin theme

This commit is contained in:
Pojok Code 2024-11-07 08:35:30 +07:00
parent 541a0dac95
commit b5f544bc27
3 changed files with 86 additions and 3 deletions

View file

@ -1,5 +1,6 @@
{
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"Eva-Theme.nvim": { "branch": "master", "commit": "80d9229ea010774610cec71921afc0defbbd3822" },
"FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" },
"LuaSnip": { "branch": "master", "commit": "2737edc9e674e537dc0a97e3405658d57d2d31ed" },
"alpha-nvim": { "branch": "main", "commit": "bf3c8bb8c02ed3d9644cc5bbc48e2bdc39349cd7" },
@ -62,7 +63,6 @@
"telescope.nvim": { "branch": "master", "commit": "85922dde3767e01d42a08e750a773effbffaea3e" },
"tiny-devicons-auto-colors.nvim": { "branch": "main", "commit": "a39fa4c92268832f6034306793b8acbfec2a7549" },
"toggleterm.nvim": { "branch": "main", "commit": "5969229c0352ff1ed7f6e24aba9c6554e1842939" },
"tokyonight.nvim": { "branch": "main", "commit": "ce91ba480070c95f40753e4663e32b4632ac6db3" },
"vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" },
"vim-visual-multi": { "branch": "master", "commit": "a6975e7c1ee157615bbc80fc25e4392f71c344d4" },
"virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },

View file

@ -0,0 +1,76 @@
return {
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
config = function()
local transparent = false
require("catppuccin").setup({
flavour = "auto", -- latte, frappe, macchiato, mocha
background = { -- :h background
light = "latte",
dark = "mocha",
},
transparent_background = transparent, -- disables setting the background color.
show_end_of_buffer = false, -- shows the '~' characters after the end of buffers
term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`)
dim_inactive = {
enabled = false, -- dims the background color of inactive window
shade = "dark",
percentage = 0.15, -- percentage of the shade to apply to the inactive window
},
no_italic = false, -- Force no italic
no_bold = false, -- Force no bold
no_underline = false, -- Force no underline
styles = { -- Handles the styles of general hi groups (see `:h highlight-args`):
comments = { "italic" }, -- Change the style of comments
conditionals = { "italic" },
loops = {},
functions = {},
keywords = { "italic" },
strings = {},
variables = {},
numbers = {},
booleans = {},
properties = {},
types = {},
operators = {},
-- miscs = {}, -- Uncomment to turn off hard-coded styles
},
color_overrides = {},
custom_highlights = function(colors)
return {
NvimTreeNormal = { fg = colors.text, bg = transparent and colors.none or colors.base },
NvimTreeWinSeparator = { fg = colors.mantle, bg = transparent and colors.none or colors.none },
Pmenu = { fg = colors.text, bg = transparent and colors.none or colors.base },
WhichKeyFloat = { fg = colors.text, bg = transparent and colors.none or colors.base },
WhichKey = { fg = colors.text, bg = transparent and colors.none or colors.base },
WhichKeyBorder = { fg = colors.text, bg = transparent and colors.none or colors.base },
NormalFloat = { fg = colors.text, bg = transparent and colors.none or colors.base },
Normal = { fg = colors.text, bg = transparent and colors.none or colors.base },
NormalNC = { fg = colors.text, bg = transparent and colors.none or colors.base },
StatusLine = { fg = colors.text, bg = colors.none },
}
end,
highlight_overrides = {
all = function(colors)
return {
["@markup.link.url"] = { fg = colors.rosewater, style = { "italic" } },
}
end,
},
default_integrations = true,
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
treesitter = true,
notify = false,
mini = {
enabled = true,
indentscope_color = "",
},
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
},
})
end,
}

View file

@ -48,7 +48,7 @@ pcode.themes = {
-- note: open remark only one
-- **:: Eva Theme ::** --
-- evatheme = "Eva-Dark",
-- evatheme = "Eva-Dark-Italic",
evatheme = "Eva-Dark-Italic",
-- evatheme = "Eva-Dark-Bold",
-- evatheme = "Eva-Light",
--
@ -71,7 +71,14 @@ pcode.themes = {
-- tokyonight = "tokyonight-night",
-- tokyonight = "tokyonight-storm",
-- tokyonight = "tokyonight-day",
tokyonight = "tokyonight-moon",
-- tokyonight = "tokyonight-moon",
--
-- **:: Catppuccin Theme ::** --
-- catppuccin = "catppuccin",
-- catppuccin = "catppuccin-latte",
-- catppuccin = "catppuccin-frappe",
-- catppuccin = "catppuccin-macchiato",
-- catppuccin = "catppuccin-macchiato",
}
-- activate config transparent_bg
pcode.transparent = false