aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-10-31 15:28:46 +0200
committerEfraim Flashner <efraim@flashner.co.il>2021-10-31 15:28:46 +0200
commit1a80b8909a521b91d30649a011b0257d0fadc18c (patch)
treee8b16e8aaaeeb191d1982ce1cad0799224834768
parent9d9fa800b38a923bb458d5f4fd1124f3e4b93178 (diff)
downloadguix-1a80b8909a521b91d30649a011b0257d0fadc18c.tar
guix-1a80b8909a521b91d30649a011b0257d0fadc18c.tar.gz
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.
-rw-r--r--gnu/packages/vim.scm14
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 83227c91de..8792e178ab 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -43,6 +43,7 @@
#: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 @@ additions:
'(("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