1
0
Fork 0
nix-config/modules/home/tools/neovim/default.nix

39 lines
551 B
Nix

{
lib,
config,
pkgs,
namespace,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.tools.neovim;
in
{
options.${namespace}.tools.neovim = {
enable = mkEnableOption "Neovim";
};
config = mkIf cfg.enable {
home = {
packages = with pkgs; [
less
plusultra.neovim
];
sessionVariables = {
EDITOR = "nvim";
};
shellAliases = {
vimdiff = "nvim -d";
};
};
xdg.configFile = {
"dashboard-nvim/.keep".text = "";
};
};
}