mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
make vimrc reloadable
This commit is contained in:
4
vimrc
4
vimrc
@@ -285,7 +285,7 @@ let g:syntastic_check_on_wq = 0
|
||||
|
||||
let g:syntastic_javascript_checkers = []
|
||||
|
||||
function CheckJavaScriptLinter(filepath, linter)
|
||||
function! CheckJavaScriptLinter(filepath, linter)
|
||||
if exists('b:syntastic_checkers')
|
||||
return
|
||||
endif
|
||||
@@ -295,7 +295,7 @@ function CheckJavaScriptLinter(filepath, linter)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function SetupJavaScriptLinter()
|
||||
function! SetupJavaScriptLinter()
|
||||
let l:current_folder = expand('%:p:h')
|
||||
let l:bin_folder = fnamemodify(syntastic#util#findFileInParent('package.json', l:current_folder), ':h')
|
||||
let l:bin_folder = l:bin_folder . '/node_modules/.bin/'
|
||||
|
||||
Reference in New Issue
Block a user