Subject: [PATCH 12/29] gnu: Add neovim-luasnip.

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

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

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 887f16c9bc..39622ac192 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1568,3 +1568,33 @@ (define-public neovim-hare
                ("ftplugin" "share/nvim/site/pack/guix/start/hare/")
                ("indent" "share/nvim/site/pack/guix/start/hare/")
                ("syntax" "share/nvim/site/pack/guix/start/hare/"))))))
+
+(define-public neovim-luasnip
+  (let ((commit "04f90900f2a57938921fd25169c7f282e7eefe85")
+        (revision "0"))
+    (package
+      (name "neovim-luasnip")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/L3MON4D3/LuaSnip")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "01swygai2p0ybr4zjzgzdv2r1i3z6qsxw95g9mlfk84v0rf7c62r"))))
+     (build-system copy-build-system)
+     (arguments
+      (list #:install-plan
+            #~'(("doc" "share/nvim/site/pack/guix/start/luasnip/")
+                ("ftdetect" "share/nvim/site/pack/guix/start/luasnip/")
+                ("ftplugin" "share/nvim/site/pack/guix/start/luasnip/")
+                ("lua" "share/nvim/site/pack/guix/start/luasnip/")
+                ("plugin" "share/nvim/site/pack/guix/start/luasnip/")
+                ("syntax" "share/nvim/site/pack/guix/start/luasnip/"))))
+     (home-page "https://github.com/L3MON4D3/LuaSnip")
+     (synopsis "Snippet engine for Neovim")
+     (description
+      "This package provides a code snippet engine for Neovim written
+in Lua.")
+     (license license:asl2.0))))
-- 
2.37.2