mirror of
https://github.com/pnx/dotfiles
synced 2026-08-18 01:28:13 +02:00
nvim/lua/user/plugins/ui/colorscheme.lua: move options variable to inline
This commit is contained in:
parent
eba945eab7
commit
1a4614c86c
1 changed files with 30 additions and 32 deletions
|
|
@ -247,43 +247,41 @@ local custom_highlights = function(colors)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
local options = {
|
|
||||||
flavour = "mocha",
|
|
||||||
transparent_background = not vim.g.neovide,
|
|
||||||
color_overrides = {
|
|
||||||
mocha = {
|
|
||||||
base = "#0E1019",
|
|
||||||
mantle = "#0D0F17",
|
|
||||||
crust = "#0C0D14",
|
|
||||||
surface0 = "#1a1c2d",
|
|
||||||
surface1 = "#343959",
|
|
||||||
surface2 = "#41476F",
|
|
||||||
overlay0 = "#3F4256",
|
|
||||||
overlay1 = "#5B5F7C",
|
|
||||||
overlay2 = "#767BA0",
|
|
||||||
|
|
||||||
text = "#eceef4",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
no_italic = true,
|
|
||||||
no_bold = true,
|
|
||||||
custom_highlights = custom_highlights,
|
|
||||||
integrations = {
|
|
||||||
cmp = true,
|
|
||||||
treesitter = true,
|
|
||||||
neotree = true,
|
|
||||||
telescope = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"catppuccin/nvim",
|
"catppuccin/nvim",
|
||||||
name = "catppuccin",
|
name = "catppuccin",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
opts = options,
|
opts = {
|
||||||
|
flavour = "mocha",
|
||||||
|
transparent_background = not vim.g.neovide,
|
||||||
|
color_overrides = {
|
||||||
|
mocha = {
|
||||||
|
base = "#0E1019",
|
||||||
|
mantle = "#0D0F17",
|
||||||
|
crust = "#0C0D14",
|
||||||
|
surface0 = "#1a1c2d",
|
||||||
|
surface1 = "#343959",
|
||||||
|
surface2 = "#41476F",
|
||||||
|
overlay0 = "#3F4256",
|
||||||
|
overlay1 = "#5B5F7C",
|
||||||
|
overlay2 = "#767BA0",
|
||||||
|
|
||||||
|
text = "#eceef4",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
no_italic = true,
|
||||||
|
no_bold = true,
|
||||||
|
custom_highlights = custom_highlights,
|
||||||
|
integrations = {
|
||||||
|
cmp = true,
|
||||||
|
treesitter = true,
|
||||||
|
neotree = true,
|
||||||
|
telescope = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("catppuccin").setup(opts)
|
require("catppuccin").setup(opts)
|
||||||
vim.cmd.colorscheme("catppuccin")
|
vim.cmd.colorscheme("catppuccin")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue