gnu: vim-tagbar: Add ctags fallback location.

* gnu/packages/vim.scm (vim-tagbar)[arguments]: Add fill path to ctags
as fallback location.
[inputs]: Add universal-ctags.
This commit is contained in:
Efraim Flashner 2021-10-31 15:28:46 +02:00
parent 9d9fa800b3
commit 1a80b8909a
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -43,6 +43,7 @@ (define-module (gnu packages vim)
#:use-module (gnu packages attr)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
#:use-module (gnu packages code)
#:use-module (gnu packages enlightenment)
#:use-module (gnu packages fontutils)
#:use-module (gnu packages gawk)
@ -1273,7 +1274,18 @@ (define-public vim-tagbar
'(("autoload" "share/vim/vimfiles/")
("doc" "share/vim/vimfiles/")
("plugin" "share/vim/vimfiles/")
("syntax" "share/vim/vimfiles/"))))
("syntax" "share/vim/vimfiles/"))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'link-univerisal-ctags
(lambda* (#:key inputs #:allow-other-keys)
(let ((ctags (assoc-ref inputs "universal-ctags")))
(substitute* "autoload/tagbar.vim"
(("(.*)universal-ctags']" all leader)
(string-append all "\n"
leader ctags "/bin/ctags']")))))))))
(inputs
`(("universal-ctags" ,universal-ctags)))
(home-page "https://github.com/preservim/tagbar")
(synopsis "Vim plugin that displays tags in a window, ordered by scope")
(description