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

View file

@ -45,4 +45,4 @@ scripts/benchmark.nvim:
## clean: reset the repository to a clean state
.PHONY: clean
clean:
rm -rf scripts/nvim-typecheck-action venv .testenv perf/tmp profile.json
rm -rf scripts/nvim-typecheck-action .testenv perf/tmp profile.json