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,
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
'';
}