mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
23 lines
472 B
Nix
23 lines
472 B
Nix
{ pkgs, lib, config, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.user.neovim;
|
|
|
|
in
|
|
{ options.modules.user.neovim = { enable = mkEnableOption "user.neovim"; };
|
|
config = mkIf cfg.enable {
|
|
programs.neovim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
vimAlias = true;
|
|
vimdiffAlias = true;
|
|
extraPackages = import ./pkgs.nix { inherit pkgs; };
|
|
};
|
|
|
|
home.file.".config/nvim" = {
|
|
source = ./nvim;
|
|
recursive = true;
|
|
};
|
|
};
|
|
}
|