nix/home-manager/common/software/cli/neovim.nix
2023-08-30 07:30:35 +09:00

31 lines
662 B
Nix

{qconfig, pkgs, ... }: {
programs.neovim = {
package = pkgs.neovim-unwrapped;
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
plugins = with pkgs.vimPlugins; [
nvchad
fugitive
];
};
# nvchad requires gcc, npm, and unzip
home.packages = [
pkgs.gcc
pkgs.unzip
pkgs.nodejs_20
pkgs.ripgrep
];
# Link the nvchad files to my homedir
# https://mipmip.github.io/home-manager-option-search/?query=xdg.dataFile
xdg.configFile."nvim" = {
enable = true;
recursive = true;
source = "${pkgs.vimPlugins.nvchad}/";
target = "./nvim";
};
}