Skip to content

Commit

Permalink
Extend gf to work with a lot more methods
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed Jul 24, 2016
1 parent a785119 commit 64bdc21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoload/ember_tools/gf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ function! ember_tools#gf#Model()
endif

let model_methods = [
\ 'createRecord',
\ 'modelFor',
\ 'belongsTo',
\ 'hasMany'
\ 'adapterFor', 'createRecord', 'deleteRecord', 'findAll', 'findRecord',
\ 'getReference', 'modelFor', 'peekAll', 'peekRecord', 'pushPayload',
\ 'query', 'queryRecord', 'serializerFor', 'unloadAll',
\ 'belongsTo', 'hasMany',
\ ]

if !ember_tools#search#UnderCursor('\%('.join(model_methods, '\|').'\)[( ][''"]\zs\k\+[''"]')
Expand Down

0 comments on commit 64bdc21

Please sign in to comment.