Subject: [PATCH 08/29] gnu: Add vim-bats.

From: "(" <[email-masked]>
Date: Wed, 24 Aug 2022 18:08:35 +0100

* gnu/packages/vim.scm (vim-bats): New variable.
---
 gnu/packages/vim.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index a222da3bb4..7aea5a8461 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1492,3 +1492,29 @@ (define-public neovim-riscv
      (list #:install-plan
            #~'(("ftdetect" "share/nvim/site/pack/guix/start/riscv/")
                ("syntax" "share/nvim/site/pack/guix/start/riscv/"))))))
+
+(define-public vim-bats
+  (let ((commit "3e64c95d7a55feb33492717d101c9eb92a8d0a9a")
+        (revision "0"))
+    (package
+     (name "vim-bats")
+     (version (git-version "0.1.0" revision commit))
+     (source (origin
+               (method git-fetch)
+               (uri (git-reference
+                     (url "https://github.com/rosstimson/bats.vim")
+                     (commit commit)))
+               (sha256
+                (base32
+                 "1laz1jx754h1lvz9h50qassyxw78kd1ah6v66dxnrxdv5b7z31d0"))))
+     (build-system copy-build-system)
+     (arguments
+      (list #:install-plan
+            #~'(("after" "share/vim/vimfiles/")
+                ("ftdetect" "share/vim/vimfiles/"))))
+     (home-page "https://github.com/rosstimson/bats.vim")
+     (synopsis "Vim syntax files for Bats tests")
+     (description
+      "This package extends Vim's built-in shell syntax highlighting
+with support for the Bats testing framework.")
+     (license license:expat))))
-- 
2.37.2