mirror of
https://github.com/itme-brain/nixos.git
synced 2026-05-08 06:50:11 -04:00
30 lines
541 B
Nix
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;
|
|
};
|
|
};
|
|
}
|