build: add nix devshell and pre-commit hooks

Problem: oil.nvim had no reproducible dev environment. The .envrc
set up a Python venv for the now-removed docgen pipeline, and there
were no pre-commit hooks for local formatting checks.

Solution: add flake.nix with stylua, selene, and prettier in the
devshell. Replace the stale Python .envrc with 'use flake'. Add
.pre-commit-config.yaml with stylua and prettier hooks matching
other plugins in the repo collection.
This commit is contained in:
Barrett Ruth 2026-02-21 23:26:39 -05:00
parent 364b787578
commit 50f1ade92c
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
5 changed files with 91 additions and 4 deletions

4
.envrc
View file

@ -1,3 +1 @@
export VIRTUAL_ENV=venv
layout python
python -c 'import pyparsing' 2>/dev/null || pip install -r scripts/requirements.txt
use flake