mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 10:56:34 +01:00
26 lines
480 B
Nix
26 lines
480 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.jopejoe1.neovim;
|
|
in
|
|
{
|
|
options.jopejoe1.neovim = {
|
|
enable = lib.mkEnableOption "Enable neovim";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.nixvim = {
|
|
enable = true;
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
colorschemes.catppuccin = {
|
|
enable = true;
|
|
settings.flavour = "frappe";
|
|
};
|
|
plugins = {
|
|
treesitter.enable = true;
|
|
direnv.enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|