mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 02:40:50 +00:00
b4's `misc/vim` directory provides ftdetect/ftplugin/syntax files that highlight the `b4 review` reply editor (activating for *.b4-review.eml buffers). Package them as a Vim/Neovim plugin, sourced from the b4 package's `passthru.src-misc` so the version stays in lockstep with b4 itself, following the notmuch-vim/hurl precedent. Assisted-by: Claude Code (Claude Opus 4.8)
20 lines
433 B
Nix
20 lines
433 B
Nix
{
|
|
lib,
|
|
vimUtils,
|
|
b4,
|
|
}:
|
|
vimUtils.buildVimPlugin {
|
|
pname = "b4-review-vim";
|
|
inherit (b4) version;
|
|
|
|
src = b4.src-misc;
|
|
sourceRoot = "${b4.src-misc.name}/misc/vim";
|
|
|
|
meta = {
|
|
description = "Vim syntax highlighting for the b4 review reply editor";
|
|
homepage = "https://git.kernel.org/pub/scm/utils/b4/b4.git/about";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ fzakaria ];
|
|
};
|
|
}
|