Skip to content

Commit 26e6f35

Browse files
committed
Make g:lua_inspect_path default compatible with Pathogen
1 parent 0249104 commit 26e6f35

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

plugin/luainspect.vim

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Author: Peter Odding <peter@peterodding.com>
33
" Last Change: May 25, 2011
44
" URL: http://peterodding.com/code/vim/lua-inspect/
5-
" Version: 0.4.8
5+
" Version: 0.4.9
66
" License: MIT
77

88
" Support for automatic update using the GLVS plug-in.
@@ -25,11 +25,7 @@ endif
2525

2626
if !exists('g:lua_inspect_path')
2727
" Change this if you want to move the Lua modules somewhere else.
28-
if has('win32') || has('win64')
29-
let g:lua_inspect_path = '~\vimfiles\misc\luainspect'
30-
else
31-
let g:lua_inspect_path = '~/.vim/misc/luainspect'
32-
endif
28+
let g:lua_inspect_path = expand('<sfile>:p:h') . '/../misc/luainspect'
3329
endif
3430

3531
if !exists('g:lua_inspect_internal')

0 commit comments

Comments
 (0)