pending.nvim/flake.nix
Barrett Ruth b617ee284e build: add tooling and dev environment configs
Problem: need formatting, linting, testing, and nix dev shell configs.

Solution: add stylua, selene, lua-language-server, busted, pre-commit,
flake.nix, and luarocks rockspec configuration.
2026-02-24 15:08:44 -05:00

36 lines
788 B
Nix

{
description = "task.nvim oil-like task management for Neovim";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs =
{
nixpkgs,
systems,
...
}:
let
forEachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
in
{
devShells = forEachSystem (pkgs: {
default = pkgs.mkShell {
packages = [
(pkgs.luajit.withPackages (
ps: with ps; [
busted
nlua
]
))
pkgs.prettier
pkgs.stylua
pkgs.selene
pkgs.lua-language-server
];
};
});
};
}