more tweaks

This commit is contained in:
Barrett Ruth 2026-03-27 18:17:12 -04:00
parent e31b2777f9
commit 25509a48ac
No known key found for this signature in database
GPG key ID: A6C96C9349D2FC81
7 changed files with 522 additions and 0 deletions

46
flake.nix Normal file
View file

@ -0,0 +1,46 @@
{
description = "forge.nvim forge-agnostic git workflow for Neovim";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
vimdoc-language-server.url = "github:barrettruth/vimdoc-language-server";
};
outputs =
{
nixpkgs,
systems,
vimdoc-language-server,
...
}:
let
forEachSystem =
f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
in
{
formatter = forEachSystem (pkgs: pkgs.nixfmt-tree);
devShells = forEachSystem (
pkgs:
let
vimdoc-ls = vimdoc-language-server.packages.${pkgs.system}.default;
commonPackages = [
pkgs.prettier
pkgs.stylua
pkgs.selene
pkgs.lua-language-server
vimdoc-ls
];
in
{
default = pkgs.mkShell {
packages = commonPackages;
};
ci = pkgs.mkShell {
packages = commonPackages;
};
}
);
};
}