nix-conf/modules/neovim/default.nix

27 lines
480 B
Nix
Raw Normal View History

2024-07-15 18:00:45 +02:00
{ 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;
2024-07-15 19:07:35 +02:00
viAlias = true;
vimAlias = true;
colorschemes.catppuccin = {
enable = true;
settings.flavour = "frappe";
};
plugins = {
treesitter.enable = true;
direnv.enable = true;
};
2024-07-15 18:00:45 +02:00
};
};
}