nvchad config

This commit is contained in:
2024-04-14 16:28:52 +02:00
parent 71b4697be3
commit ffc8602221
19 changed files with 1758 additions and 0 deletions

57
nvchad/flake.nix Normal file
View File

@@ -0,0 +1,57 @@
{
description = "NvChad's Neovim Configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
utils,
...
}:
utils.lib.eachDefaultSystem (
system: let
inherit (nixpkgs) lib;
pkgs = nixpkgs.legacyPackages.${system};
nvim =
pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped
(pkgs.neovimUtils.makeNeovimConfig
{
customRC = ''
set runtimepath^=${./.}
source ${./.}/init.lua
'';
}
// {
wrapperArgs = [
"--prefix"
"PATH"
":"
"${lib.makeBinPath [pkgs.gcc pkgs.nil pkgs.chafa pkgs.ffmpegthumbnailer pkgs.wakatime pkgs.statix]}"
];
});
in {
overlays = {
neovim = _: _prev: {
neovim = nvim;
};
default = self.overlays.neovim;
};
packages = rec {
neovim = nvim;
default = neovim;
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.stylua
];
};
}
);
}