Subject: [bug#57389] [PATCH 01/29] gnu: Add neovim-mini.

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

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

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index a07c681cb3..d40bc49d73 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2021 Tissevert <[email-masked]>
 ;;; Copyright © 2021 Foo Chuan Wei <[email-masked]>
 ;;; Copyright © 2022 Luis Henrique Gomes Higino <[email-masked]>
+;;; Copyright © 2022 ( <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1379,3 +1380,36 @@ (define-public vim-nerdcommenter
 operations and styles which are invoked via key mappings and a menu.  These
 operations are available for most filetypes.")
       (license license:cc0))))
+
+(define-public neovim-mini
+  (package
+    (name "neovim-mini")
+    (version "0.5.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/echasnovski/mini.nvim")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1dqni5q4823hmp0njlpdgbvl7zafvmn7vkka4iwsl06br9h1b908"))))
+    (build-system copy-build-system)
+    (arguments
+     (list #:install-plan
+           #~'(("colors" "share/nvim/site/pack/guix/start/mini/")
+               ("doc" "share/nvim/site/pack/guix/start/mini/")
+               ("lua" "share/nvim/site/pack/guix/start/mini/"))))
+    (home-page "https://github.com/echasnovski/mini.nvim")
+    (synopsis "Small, self contained addons for Neovim")
+    (description
+     "@code{mini} is a collection of small Neovim extensions written
+in Lua, including:
+
+@enumerate
+@item @code{mini.comment}, for commenting lines with a keybinding
+@item @code{mini.complete}, an auto-completion plugin
+@item @code{mini.pairs}, for auto-pairing of parentheses and quotes
+@item @code{mini.starter}, a menu that appears on startup
+@end enumerate")
+    (license license:expat)))
-- 
2.37.2