From: Sergey Matveev <stargrave@stargrave.org>
Date: Mon, 13 Dec 2021 12:07:07 +0000 (+0300)
Subject: Relative path to zshfe.zsh
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=7c140afaa7a22dddf8720a0b05cb363cf4f3cdbd;p=dotfiles.git

Relative path to zshfe.zsh
---

diff --git a/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim b/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim
index af3540b..d85d531 100644
--- a/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim
+++ b/vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim
@@ -3,7 +3,9 @@
 " License: GNU General Public License version 3 of the License or later
 
 if exists("*<SID>zshfe") | finish | endif
-if !exists("g:zshfe_path") | let g:zshfe_path=expand("~/.vim/plugin/zshfe.zsh") | endif
+if !exists("g:zshfe_path")
+    let g:zshfe_path=expand("<sfile>:p:h") . "/zshfe.zsh"
+endif
 
 function! s:zshfe(query, opencmd)
     silent let result = systemlist(g:zshfe_path . " " . a:query)