nixos/modules/home/editors/neovim.nix

42 lines
720 B
Nix
Raw Normal View History

2025-02-10 20:20:33 +01:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.home.editors.neovim;
in
{
options.modules.home.editors.neovim = {
enable = mkEnableOption ''
Enable neovim with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.neovim = {
enable = true;
defaultEditor = true;
};
# Source : https://www.lazyvim.org/
modules.home.apps.kitty.enable = lib.mkDefault true;
modules.home.shell.git.enable = lib.mkDefault true;
home.packages = with pkgs; [
lazygit
curl
gnutar
fzf
ripgrep
fd
gcc
unzip
cargo
python3
nodejs
nil
rust-analyzer
clang-tools
];
};
}