feat(neovim): Catppuccin -> Rose Pine
This commit is contained in:
parent
09370a33d1
commit
4f738cbbf5
1 changed files with 8 additions and 15 deletions
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue