[Top][All Lists]

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

02/02: gnu: Add neovim-syntastic.

From: Leo Famulari
Subject: 02/02: gnu: Add neovim-syntastic.
Date: Wed, 10 May 2017 23:59:19 -0400 (EDT)

lfam pushed a commit to branch master
in repository guix.

commit bc84735d1434a92d64f9b6d764b2dc034246697b
Author: ng0 <address@hidden>
Date:   Sat Apr 15 17:46:43 2017 +0000

    gnu: Add neovim-syntastic.
    * gnu/packages/vim.scm (neovim-syntastic): New variable.
    Signed-off-by: Leo Famulari <address@hidden>
 gnu/packages/vim.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index bb2bf3e..697c7de 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -554,6 +554,36 @@ are detected, the user is notified.")
     (home-page "";)
     (license license:wtfpl2)))
+(define-public neovim-syntastic
+  (package
+    (inherit vim-syntastic)
+    (name "neovim-syntastic")
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (delete 'build)
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (vimfiles (string-append out "/share/nvim/site"))
+                    (doc (string-append vimfiles "/doc"))
+                    (plugin (string-append vimfiles "/plugin"))
+                    (autoload (string-append vimfiles "/autoload"))
+                    (syntax-checkers (string-append vimfiles 
+               (copy-recursively "doc" doc)
+               (copy-recursively "autoload" autoload)
+               (copy-recursively "plugin" plugin)
+               (copy-recursively "syntax_checkers" syntax-checkers)
+               #t))))))
+    (synopsis "Syntax checking plugin for Neovim")
+    (description
+     "Vim-syntastic is a syntax checking plugin for Neovim.  It runs files 
+external syntax checkers and displays any resulting errors to the user.  This
+can be done on demand, or automatically as files are saved.  If syntax errors
+are detected, the user is notified.")))
 (define-public neovim
     (name "neovim")

reply via email to

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