From 4f738cbbf56717a7c65c2433274b2d692fa40eab Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 20 Oct 2024 11:51:39 -0700 Subject: [PATCH] feat(neovim): Catppuccin -> Rose Pine --- modules/home-manager/neovim.nix | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/modules/home-manager/neovim.nix b/modules/home-manager/neovim.nix index f8adfbf..55da906 100644 --- a/modules/home-manager/neovim.nix +++ b/modules/home-manager/neovim.nix @@ -3,30 +3,23 @@ pkgs, lib, ... -}: -let - cfg = config.programs.neovim.catppuccin; +}: let + cfg = config.programs.neovim.rose-pine; enable = cfg.enable && config.programs.neovim.enable; -in -{ - options.programs.neovim.catppuccin = lib.ctp.mkCatppuccinOpt { name = "neovim"; }; +in { + options.programs.neovim.rose-pine = lib.rp.mkRosePineOpt {name = "neovim";}; config.programs.neovim = lib.mkIf enable { plugins = with pkgs.vimPlugins; [ { - plugin = catppuccin-nvim; + plugin = rose-pine; config = '' lua << EOF - local compile_path = vim.fn.stdpath("cache") .. "/catppuccin-nvim" - vim.fn.mkdir(compile_path, "p") - vim.opt.runtimepath:append(compile_path) - - require("catppuccin").setup({ - compile_path = compile_path, - flavour = "${cfg.flavor}", + require("rose-pine").setup({ + variant = "${cfg.flavor}", }) - vim.api.nvim_command("colorscheme catppuccin") + vim.api.nvim_command("colorscheme rose-pine") EOF ''; }