dotfiles/home/apps/neovim/after/plugin/catppuccin.lua

97 lines
2.5 KiB
Lua
Raw Normal View History

vim.g.catppuccin_flavour = "mocha"
2022-12-22 04:55:44 +01:00
local present, catppuccin = pcall(require, "catppuccin")
if not present then
return
end
2022-12-22 04:55:44 +01:00
catppuccin.setup({
transparent_background = true,
2022-10-11 07:40:50 +02:00
dim_inactive = {
enable = true,
shade = "dark",
percentage = 0.15,
},
styles = {
comments = { "italic" },
conditionals = { "italic" },
},
integrations = {
treesitter = true,
native_lsp = {
enabled = true,
virtual_text = {
errors = { "italic" },
hints = { "italic" },
warnings = { "italic" },
information = { "italic" },
},
underlines = {
2023-02-19 02:07:03 +01:00
errors = { "undercurl" },
hints = { "undercurl" },
warnings = { "undercurl" },
information = { "undercurl" },
2022-10-11 07:40:50 +02:00
},
},
cmp = true,
lsp_trouble = true,
2023-02-11 10:15:48 +01:00
nvimtree = true,
2022-10-11 07:40:50 +02:00
which_key = true,
indent_blankline = {
enabled = true,
colored_indent_levels = true,
},
2023-02-11 02:36:46 +01:00
navic = {
2023-02-11 10:15:48 +01:00
enabled = true,
2023-02-11 02:36:46 +01:00
custom_bg = "NONE",
},
2022-10-11 07:40:50 +02:00
gitsigns = true,
lightspeed = true,
markdown = true,
neogit = true,
symbols_outline = true,
ts_rainbow = true,
vimwiki = true,
2022-10-11 07:40:50 +02:00
},
2022-11-02 16:50:16 +01:00
highlight_overrides = {
all = function(colors)
2022-11-02 16:50:16 +01:00
return {
-- custom selection highlight
Selection = { bg = colors.surface1, fg = colors.text },
-- borders
2022-11-02 16:50:16 +01:00
FloatBorder = { fg = colors.overlay0 },
LspInfoBorder = { link = "FloatBorder" },
NvimTreeWinSeparator = { link = "FloatBorder" },
WhichKeyBorder = { link = "FloatBorder" },
-- telescope
2022-11-02 16:50:16 +01:00
TelescopeBorder = { link = "FloatBorder" },
TelescopeTitle = { fg = colors.text },
TelescopeSelection = { link = "Selection" },
TelescopeSelectionCaret = { link = "Selection" },
-- pmenu
PmenuSel = { link = "Selection" },
2023-02-09 16:42:53 +01:00
-- bufferline
BufferLineTabSeparator = { link = "FloatBorder" },
BufferLineSeparator = { link = "FloatBorder" },
BufferLineOffsetSeparator = { link = "FloatBorder" },
}
end,
mocha = function(colors)
return {
Selection = { bg = "#121212", fg = colors.text },
Comment = { fg = colors.surface2, style = { "italic" } },
InlayHint = { fg = colors.surface0, style = { "italic" } },
WinSeparator = { fg = colors.surface2 },
2022-11-02 16:50:16 +01:00
}
end,
},
color_overrides = {
2022-11-02 16:50:16 +01:00
mocha = {
base = "#000000",
crust = "#010101",
mantle = "#020202",
2022-11-02 16:50:16 +01:00
},
2022-10-11 07:40:50 +02:00
},
2022-07-30 07:17:12 +02:00
})
2022-10-11 07:40:50 +02:00
vim.api.nvim_command("colorscheme catppuccin")