29 lines
578 B
Nix
29 lines
578 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.ptw.programs.neovim;
|
||
|
in {
|
||
|
options.ptw.programs.neovim = {
|
||
|
enable = lib.mkEnableOption "Enable and configure neovim using HomeManager";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
home-manager.users."${config.ptw.system.singleUser}" = {
|
||
|
programs.neovim = {
|
||
|
enable = true;
|
||
|
extraPackages = with pkgs; [
|
||
|
# For telescope-nvim
|
||
|
fd
|
||
|
lazygit
|
||
|
fish
|
||
|
tree-sitter gcc
|
||
|
nodejs_20
|
||
|
|
||
|
# Clipboard
|
||
|
wl-clipboard
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|