add neovim
All checks were successful
check / check (push) Successful in 31s

This commit is contained in:
Florian RICHER 2025-02-10 20:20:33 +01:00
parent 07ed50ca90
commit e52f68c62a
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
2 changed files with 42 additions and 0 deletions

View file

@ -3,6 +3,7 @@
{
imports = [
./emacs
./neovim.nix
./vscode.nix
];
}

View file

@ -0,0 +1,41 @@
{ 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
];
};
}