diff --git a/modules/home/editors/default.nix b/modules/home/editors/default.nix index 9cfb813..3135512 100644 --- a/modules/home/editors/default.nix +++ b/modules/home/editors/default.nix @@ -3,6 +3,7 @@ { imports = [ ./emacs + ./neovim.nix ./vscode.nix ]; } \ No newline at end of file diff --git a/modules/home/editors/neovim.nix b/modules/home/editors/neovim.nix new file mode 100644 index 0000000..74e7d1a --- /dev/null +++ b/modules/home/editors/neovim.nix @@ -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 + ]; + }; +}