Files
nix/modules/home-manager/programs/neovim.nix
2024-04-09 12:09:30 -03:00

33 lines
507 B
Nix

{
config,
lib,
pkgs,
...
}: let
cfg = config.programs.neovim;
in {
imports = [];
config = with lib;
mkIf cfg.enable {
programs.neovim = {
viAlias = true;
vimAlias = true;
withNodeJs = true;
defaultEditor = true;
};
home.sessionVariables = mkIf cfg.defaultEditor {
EDITOR = "nvim";
};
home.packages = with pkgs; [
git
lazygit
gcc
wget
alejandra
stylua
];
};
}