guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#57389] [PATCH 15/29] gnu: Add neovim-cmp-luasnip.


From: (
Subject: [bug#57389] [PATCH 15/29] gnu: Add neovim-cmp-luasnip.
Date: Wed, 24 Aug 2022 18:08:42 +0100

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

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index bde1ea22ee..045cfe3c6c 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1653,3 +1653,30 @@ (define-public neovim-cmp-lsp
        "This package integrates @code{neovim-cmp} with Neovim's builtin
 Language Server Protocol client implementation.")
       (license license:expat))))
+
+(define-public neovim-cmp-luasnip
+  (let ((commit "a9de941bcbda508d0a45d28ae366bb3f08db2e36")
+        (revision "0"))
+    (package
+      (name "neovim-cmp-luasnip")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/saadparwaiz1/cmp_luasnip";)
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "0mh7gimav9p6cgv4j43l034dknz8szsnmrz49b2ra04yk9ihk1zj"))))
+      (build-system copy-build-system)
+      (arguments
+       (list #:install-plan
+             #~'(("after" "share/nvim/site/pack/guix/start/cmp-luasnip/")
+                 ("lua" "share/nvim/site/pack/guix/start/cmp-luasnip/"))))
+      (propagated-inputs (list neovim-cmp neovim-luasnip))
+      (home-page "https://github.com/saadparwaiz1/cmp_luasnip";)
+      (synopsis "Luasnip source for neovim-cmp")
+      (description
+       "This package adds a LuaSnip source for the @code{neovim-cmp}
+completion engine, allowing auto-completion of code snippets.")
+      (license license:asl2.0))))
-- 
2.37.2






reply via email to

[Prev in Thread] Current Thread [Next in Thread]