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,
|
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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue