Subject: [PATCH 25/29] gnu: Add neovim-auto-save.

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

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

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 28179160ae..dcd215cb7f 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1873,3 +1873,29 @@ (define-public neovim-autopairs
        "This package provides an auto-pairing plugin for Neovim that
 supports multiple characters.")
      (license license:expat))))
+
+(define-public neovim-auto-save
+  (let ((commit "2c7a2943340ee2a36c6a61db812418fca1f57866")
+        (revision "0"))
+    (package
+      (name "neovim-auto-save")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/Pocco81/auto-save.nvim")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "0zfy1pw39c0zf4mfd8kgl1hj9h1hcbsql32rp0wk0kf714hbxqli"))))
+      (build-system copy-build-system)
+      (arguments
+       (list #:install-plan
+             #~'(("lua" "share/nvim/site/pack/guix/start/auto-save/")
+                 ("plugin" "share/nvim/site/pack/guix/start/auto-save/"))))
+      (home-page "https://github.com/Pocco81/auto-save.nvim")
+      (synopsis "Neovim plugin for automatically saving your work")
+      (description
+       "This package provides a plugin for Neovim that automatically
+saves files to disk as you type.")
+      (license license:gpl3))))
-- 
2.37.2