nix/home-manager/common/software/cli/neovim.nix

32 lines
662 B
Nix
Raw Normal View History

2023-08-30 00:30:35 +02:00
{qconfig, pkgs, ... }: {
2023-07-01 14:25:37 +02:00
programs.neovim = {
2023-08-29 13:09:37 +02:00
package = pkgs.neovim-unwrapped;
2023-07-01 12:02:59 +02:00
enable = true;
2023-07-01 14:25:07 +02:00
defaultEditor = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
2023-08-29 11:54:57 +02:00
plugins = with pkgs.vimPlugins; [
nvchad
2023-08-30 00:30:35 +02:00
fugitive
2023-07-01 13:08:44 +02:00
];
2023-08-29 12:46:03 +02:00
};
2023-08-29 13:21:25 +02:00
2023-08-29 14:15:01 +02:00
# nvchad requires gcc, npm, and unzip
2023-08-29 14:17:12 +02:00
home.packages = [
pkgs.gcc
pkgs.unzip
2023-08-29 14:48:52 +02:00
pkgs.nodejs_20
2023-08-30 00:30:35 +02:00
pkgs.ripgrep
2023-08-29 14:15:01 +02:00
];
2023-08-29 13:21:25 +02:00
# Link the nvchad files to my homedir
# https://mipmip.github.io/home-manager-option-search/?query=xdg.dataFile
2023-08-29 13:49:54 +02:00
xdg.configFile."nvim" = {
2023-08-29 13:21:25 +02:00
enable = true;
2023-08-29 13:22:01 +02:00
recursive = true;
2023-08-29 13:55:33 +02:00
source = "${pkgs.vimPlugins.nvchad}/";
target = "./nvim";
2023-08-29 13:21:25 +02:00
};
2023-08-29 12:10:20 +02:00
}