feat(neovim): Catppuccin -> Rose Pine

This commit is contained in:
punkfairie 2024-10-20 11:51:39 -07:00
parent 09370a33d1
commit 4f738cbbf5
Signed by: punkfairie
GPG key ID: 01823C057725C266

View file

@ -3,30 +3,23 @@
pkgs, pkgs,
lib, lib,
... ...
}: }: let
let cfg = config.programs.neovim.rose-pine;
cfg = config.programs.neovim.catppuccin;
enable = cfg.enable && config.programs.neovim.enable; enable = cfg.enable && config.programs.neovim.enable;
in in {
{ options.programs.neovim.rose-pine = lib.rp.mkRosePineOpt {name = "neovim";};
options.programs.neovim.catppuccin = lib.ctp.mkCatppuccinOpt { name = "neovim"; };
config.programs.neovim = lib.mkIf enable { config.programs.neovim = lib.mkIf enable {
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
{ {
plugin = catppuccin-nvim; plugin = rose-pine;
config = '' config = ''
lua << EOF lua << EOF
local compile_path = vim.fn.stdpath("cache") .. "/catppuccin-nvim" require("rose-pine").setup({
vim.fn.mkdir(compile_path, "p") variant = "${cfg.flavor}",
vim.opt.runtimepath:append(compile_path)
require("catppuccin").setup({
compile_path = compile_path,
flavour = "${cfg.flavor}",
}) })
vim.api.nvim_command("colorscheme catppuccin") vim.api.nvim_command("colorscheme rose-pine")
EOF EOF
''; '';
} }