Subject: [PATCH 18/29] gnu: Add vim-janet.

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

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

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 877e4b5d3f..ee41c19314 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1724,3 +1724,31 @@ (define-public neovim-markdown
                ("ftplugin" "share/nvim/site/pack/guix/start/markdown/")
                ("indent" "share/nvim/site/pack/guix/start/markdown/")
                ("syntax" "share/nvim/site/pack/guix/start/markdown/"))))))
+
+(define-public vim-janet
+  (let ((commit "294538bab12a56129b8c8433ef7d23b18d05f2e9")
+        (revision "0"))
+    (package
+      (name "vim-janet")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/janet-lang/janet.vim")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "1x81n4sdxza5hx3fg2pnzkj4f1sv87i7spldg8rsqpglx7da4clx"))))
+      (build-system copy-build-system)
+      (arguments
+       (list #:install-plan
+             #~'(("ftdetect" "share/vim/vimfiles/")
+                 ("ftplugin" "share/vim/vimfiles/")
+                 ("indent" "share/vim/vimfiles/")
+                 ("syntax" "share/vim/vimfiles/"))))
+      (home-page "https://github.com/janet-lang/janet.vim")
+      (synopsis "Vim syntax files for Janet")
+      (description
+       "This package provides Vim syntax files for the Janet
+programming language.")
+      (license license:expat))))
-- 
2.37.2