Subject: [PATCH 14/29] gnu: Add neovim-cmp-lsp.

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

* gnu/packages/vim.scm (neovim-cmp-lsp): 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 0ceb592ab8..bde1ea22ee 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1626,3 +1626,30 @@ (define-public neovim-cmp
 package; you need to install other packages (such as @code{cmp-lsp})
 to make use of it.")
     (license license:expat)))
+
+(define-public neovim-cmp-lsp
+  (let ((commit "affe808a5c56b71630f17aa7c38e15c59fd648a8")
+        (revision "0"))
+    (package
+      (name "neovim-cmp-lsp")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/hrsh7th/cmp-nvim-lsp")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "1v88bw8ri8w4s8yn7jw5anyiwyw8swwzrjf843zqzai18kh9mlnp"))))
+      (build-system copy-build-system)
+      (arguments
+       (list #:install-plan
+             #~'(("after" "share/nvim/site/pack/guix/start/cmp-lsp/")
+                 ("lua" "share/nvim/site/pack/guix/start/cmp-lsp/"))))
+      (propagated-inputs (list neovim-cmp))
+      (home-page "https://github.com/hrsh7th/cmp-nvim-lsp")
+      (synopsis "LSP source for @code{neovim-cmp}")
+      (description
+       "This package integrates @code{neovim-cmp} with Neovim's builtin
+Language Server Protocol client implementation.")
+      (license license:expat))))
-- 
2.37.2