From c5a53918bee4ae9c7b098a93446f7f4bcdacb71f Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sat, 2 Nov 2024 02:18:17 +0100 Subject: [PATCH] configure catppuccin theme for config --- lua/plugins/catppuccin.lua | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 lua/plugins/catppuccin.lua diff --git a/lua/plugins/catppuccin.lua b/lua/plugins/catppuccin.lua new file mode 100644 index 0000000..ff10e09 --- /dev/null +++ b/lua/plugins/catppuccin.lua @@ -0,0 +1,48 @@ +return { + -- add catppuccin + { + "catppuccin/nvim", + lazy = true, + name = "catppuccin", + opts = { + integrations = { + cmp = true, + dashboard = true, + gitsigns = true, + indent_blankline = { enabled = true }, + mason = true, + markdown = true, + mini = true, + native_lsp = { + enabled = true, + underlines = { + errors = { "undercurl" }, + hints = { "undercurl" }, + warnings = { "undercurl" }, + information = { "undercurl" }, + }, + }, + semantic_tokens = true, + telescope = true, + treesitter = true, + which_key = true, + }, + }, + keys = { + { + "tt", + function() + vim.cmd.colorscheme(vim.o.background == "dark" and "catppuccin-latte" or "catppuccin-mocha") + end, + desc = "[T]oggle [T]heme", + }, + }, + }, + -- Configure LazyVim to load catppuccin + { + "LazyVim/LazyVim", + opts = { + colorscheme = "catppuccin-mocha", + }, + }, +}