nvim: Configure it with everything needed for LazyVim
This commit is contained in:
28
modules/programs/neovim/default.nix
Normal file
28
modules/programs/neovim/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ 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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user