From 74e43e5e283e5d7ad2d4cfef431ee1c6f260541b Mon Sep 17 00:00:00 2001 From: unwox Date: Mon, 20 Feb 2023 22:18:15 +0600 Subject: [PATCH] add vim-autopairs package --- guixrus/packages/vim.scm | 41 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/guixrus/packages/vim.scm b/guixrus/packages/vim.scm index bf8e757..6566c47 100644 --- a/guixrus/packages/vim.scm +++ b/guixrus/packages/vim.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; ;;; Copyright © 2022 (unmatched parenthesis -;;; Copyright © 2022 unwox +;;; Copyright © 2022,2023 unwox ;;; Copyright © 2023 Kitty-Cricket Piapiac ;;; ;;; This file is not part of GNU Guix. @@ -712,3 +712,42 @@ possible.") (syntax checking and semantic errors) in NeoVim 0.2.0+ and Vim 8 while you edit your text files, and acts as a Vim Language Server Protocol client.") (license license:bsd-2))) + +(define-public vim-autopairs + (package + (name "vim-autopairs") + (version "2.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jiangmiao/auto-pairs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0pxrsmrcnci2k3crmj6ldb0faiai5f9ic1ywx513v148cl4vh8h1")))) + (build-system copy-build-system) + (arguments + '(#:install-plan + '(("doc" "share/vim/vimfiles/") + ("plugin" "share/vim/vimfiles/")))) + (home-page "https://github.com/jiangmiao/auto-pairs") + (synopsis "Automatic insertion and deletion of brackets, parens, quotes in Vim") + (description "Insert or delete brackets, parens, quotes in pair. + +Features: +@itemize +@item Insert in pair +@item Delete in pair +@item Insert new indented line after Return +@item Insert spaces before closing characters, only for [], (), {} +@item Skip ' when inside a word +@item Skip closed bracket. +@item Ignore auto pair when previous character is \ +@item Fast Wrap +@item Quick move char to closed pair +@item Quick jump to closed pair. +@item Fly Mode +@item Multibyte Pairs +@end itemize") + (license license:expat))) -- 2.38.5