41 lines
841 B
Nix
41 lines
841 B
Nix
{config, pkgs, ... }: {
|
|
programs.neovim = {
|
|
package = pkgs.neovim-unwrapped;
|
|
enable = true;
|
|
defaultEditor = true;
|
|
viAlias = true;
|
|
vimAlias = true;
|
|
vimdiffAlias = true;
|
|
plugins = with pkgs.vimPlugins; [
|
|
nvchad
|
|
fugitive
|
|
nvim-treesitter
|
|
elixir-tools-nvim
|
|
telescope-fzf-native-nvim
|
|
|
|
# Themes
|
|
catppuccin-nvim
|
|
tokyonight-nvim
|
|
];
|
|
};
|
|
|
|
# nvchad requires gcc, npm, and unzip
|
|
home.packages = [
|
|
pkgs.gcc
|
|
pkgs.unzip
|
|
pkgs.nodejs_20
|
|
pkgs.ripgrep
|
|
pkgs.fd
|
|
pkgs.lazygit
|
|
pkgs.fzf
|
|
];
|
|
|
|
# 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";
|
|
};
|
|
}
|