Skip to content

Commit

Permalink
additional alternate path
Browse files Browse the repository at this point in the history
Our project setup uses frontend/src/… and test/frontend/…
  • Loading branch information
nkoehring committed Aug 20, 2014
1 parent 8e4eca8 commit 0d8cd4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/angular.vim
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ function! s:Alternate(cmd) abort
let l:newpaths = [substitute(l:currentpath, "app/js", "test/unit", ""), substitute(substitute(l:currentpath, "app/js", "test/unit", ""), ".js", "Spec.js", "")]
elseif l:currentpath =~ "public/js"
let l:newpaths = [substitute(l:currentpath, "public/js", "test/karma/unit", ""), substitute(substitute(l:currentpath, "public/js", "test/karma/unit", ""), ".js", ".spec.js", "")]
elseif l:currentpath =~ "frontend/src"
let l:newpaths = [substitute(l:currentpath, "frontend/src", "test/frontend", "")]
endif

if l:newpaths != []
Expand Down

0 comments on commit 0d8cd4a

Please sign in to comment.