2022-10-21 17:01:46 +02:00
|
|
|
vim.g.catppuccin_flavour = "mocha"
|
2022-12-22 04:55:44 +01:00
|
|
|
local present, catppuccin = pcall(require, "catppuccin")
|
2023-01-04 13:32:59 +01:00
|
|
|
if not present then
|
|
|
|
return
|
|
|
|
end
|
2022-10-21 17:01:46 +02:00
|
|
|
|
2022-12-22 04:55:44 +01:00
|
|
|
catppuccin.setup({
|
2023-01-31 09:38:11 +01:00
|
|
|
transparent_background = false,
|
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,
|
2022-10-21 17:01:46 +02:00
|
|
|
vimwiki = true,
|
2022-10-11 07:40:50 +02:00
|
|
|
},
|
2022-11-02 16:50:16 +01:00
|
|
|
highlight_overrides = {
|
2022-11-29 05:09:05 +01:00
|
|
|
all = function(colors)
|
2022-11-02 16:50:16 +01:00
|
|
|
return {
|
2022-11-29 05:09:05 +01:00
|
|
|
-- custom selection highlight
|
|
|
|
Selection = { bg = colors.surface1, fg = colors.text },
|
|
|
|
-- borders
|
2022-11-02 16:50:16 +01:00
|
|
|
FloatBorder = { fg = colors.overlay0 },
|
2022-11-29 05:09:05 +01:00
|
|
|
LspInfoBorder = { link = "FloatBorder" },
|
|
|
|
NvimTreeWinSeparator = { link = "FloatBorder" },
|
|
|
|
WhichKeyBorder = { link = "FloatBorder" },
|
|
|
|
-- telescope
|
2022-11-02 16:50:16 +01:00
|
|
|
TelescopeBorder = { link = "FloatBorder" },
|
2022-11-29 05:09:05 +01:00
|
|
|
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" },
|
2022-11-29 05:09:05 +01:00
|
|
|
}
|
|
|
|
end,
|
|
|
|
mocha = function(colors)
|
|
|
|
return {
|
|
|
|
Selection = { bg = "#121212", fg = colors.text },
|
|
|
|
Comment = { fg = colors.surface2, style = { "italic" } },
|
|
|
|
InlayHint = { fg = colors.surface0, style = { "italic" } },
|
2023-02-07 03:34:03 +01:00
|
|
|
WinSeparator = { fg = colors.surface2 },
|
2022-11-02 16:50:16 +01:00
|
|
|
}
|
|
|
|
end,
|
2022-10-21 17:01:46 +02:00
|
|
|
},
|
|
|
|
color_overrides = {
|
2022-11-02 16:50:16 +01:00
|
|
|
mocha = {
|
|
|
|
base = "#000000",
|
2022-11-29 05:09:05 +01:00
|
|
|
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")
|