nixos/user/modules/neovim/default.nix
2026-04-30 22:35:09 -04:00

30 lines
541 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 = with pkgs; [
lazygit
cargo
rustc
gcc
fzf
ripgrep
];
};
home.file.".config/nvim" = {
source = ./nvim;
recursive = true;
};
};
}