Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Mar 29, 2024
1 parent 81b0bb8 commit 073e190
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dotvim/core/action.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ end
---@return dotvim.core.action.ActionOption[]
function M.make_options(opts)
local common_opts = {
from = opts.from,
plugin = opts.from,
category = opts.category,
condition = opts.condition,
}
Expand Down
10 changes: 10 additions & 0 deletions lua/dotvim/packages/theme/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---@type dotvim.core.package.PackageOption
return {
name = "dotvim.packages.theme",
plugins = {
require("dotvim.packages.theme.plugins.catppuccin"),
},
setup = function()
vim.cmd("colorscheme catppuccino")
end,
}
153 changes: 153 additions & 0 deletions lua/dotvim/packages/theme/plugins/catppuccin.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
---@type dotvim.core.plugin.PluginOption
return {

"catppuccin/nvim",
name = "catppuccin",
lazy = true,
build = ":CatppuccinCompile",
opts = {
flavour = "mocha",
term_colors = true,
transparent_background = false,
compile_path = vim.fn.stdpath("cache") .. "/catppuccin",
dim_inactive = { enabled = false },
styles = {
comments = { "italic" },
conditionals = { "italic" },
properties = {},
functions = {},
keywords = {},
operators = {},
loops = {},
booleans = {},
numbers = {},
types = {},
strings = {},
variables = {},
},
color_overrides = {
frappe = {
rosewater = "#F5B8AB",
flamingo = "#F29D9D",
pink = "#AD6FF7",
mauve = "#FF8F40",
red = "#E66767",
maroon = "#EB788B",
peach = "#FAB770",
yellow = "#FACA64",
green = "#70CF67",
teal = "#4CD4BD",
sky = "#61BDFF",
sapphire = "#4BA8FA",
blue = "#00BFFF",
lavender = "#00BBCC",
text = "#C1C9E6",
subtext1 = "#A3AAC2",
subtext0 = "#8E94AB",
overlay2 = "#7D8296",
overlay1 = "#676B80",
overlay0 = "#464957",
surface2 = "#3A3D4A",
surface1 = "#2F313D",
surface0 = "#1D1E29",
base = "#0b0b12",
mantle = "#11111a",
crust = "#191926",
},
macchiato = {
rosewater = "#cc7983",
flamingo = "#bb5d60",
pink = "#d54597",
mauve = "#a65fd5",
red = "#b7242f",
maroon = "#db3e68",
peach = "#e46f2a",
yellow = "#bc8705",
green = "#1a8e32",
teal = "#00a390",
sky = "#089ec0",
sapphire = "#0ea0a0",
blue = "#017bca",
lavender = "#8584f7",
text = "#444444",
subtext1 = "#555555",
subtext0 = "#666666",
overlay2 = "#777777",
overlay1 = "#888888",
overlay0 = "#999999",
surface2 = "#aaaaaa",
surface1 = "#bbbbbb",
surface0 = "#cccccc",
base = "#ffffff",
mantle = "#eeeeee",
crust = "#dddddd",
},
},
custom_highlights = function(C)
return {
["@lsp.typemod.variable.mutable.rust"] = { style = { "underline" } },
["@lsp.typemod.selfKeyword.mutable.rust"] = {
style = { "underline" },
},
["@variable.builtin"] = { fg = C.maroon, style = { "italic" } },
NoicePopupBorder = { bg = C.mantle },
}
end,
integrations = {
alpha = true,
aerial = true,
barbecue = {
dim_dirname = true,
bold_basename = true,
},
treesitter = true,
headlines = true,
flash = true,
gitsigns = true,
notify = true,
native_lsp = {
enabled = true,
virtual_text = {
errors = { "italic" },
hints = { "italic" },
warnings = { "italic" },
information = { "italic" },
},
underlines = {
errors = { "undercurl" },
hints = { "undercurl" },
warnings = { "undercurl" },
information = { "undercurl" },
},
},
semantic_tokens = true,
lsp_trouble = true,
markdown = true,
noice = true,
telescope = {
enabled = true,
style = "nvchad",
},
illuminate = true,
nvimtree = false,
mason = true,
neotree = true,
mini = true,
which_key = true,
hop = true,
cmp = true,
lsp_saga = true,
octo = true,
navic = { enabled = true },
window_picker = true,
},
},
actions = {
{
id = "catppuccin.compile",
title = "Recompile Catppuccin",
callback = "CatppuccinCompile",
plugin = "catppuccin.nvim",
},
},
}

0 comments on commit 073e190

Please sign in to comment.