From 1a4614c86c7276238bcb5b788d04cb0011cf7b0d Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 4 Apr 2026 14:35:05 +0200 Subject: [PATCH] nvim/lua/user/plugins/ui/colorscheme.lua: move options variable to inline --- nvim/lua/user/plugins/ui/colorscheme.lua | 62 ++++++++++++------------ 1 file changed, 30 insertions(+), 32 deletions(-) diff --git a/nvim/lua/user/plugins/ui/colorscheme.lua b/nvim/lua/user/plugins/ui/colorscheme.lua index fe3cf89..ff586c3 100644 --- a/nvim/lua/user/plugins/ui/colorscheme.lua +++ b/nvim/lua/user/plugins/ui/colorscheme.lua @@ -247,43 +247,41 @@ local custom_highlights = function(colors) } 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 { "catppuccin/nvim", name = "catppuccin", lazy = false, 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) require("catppuccin").setup(opts) vim.cmd.colorscheme("catppuccin")