Skip to content

Commit 6b6369e

Browse files
committed
Remove all editor.json support except projections
1 parent 0178679 commit 6b6369e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

autoload/rails.vim

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ function! s:app_tags_command() dict
10821082
call s:error("ctags not found")
10831083
return ''
10841084
endif
1085-
let args = self.config('ctags_arguments', s:split(get(g:, 'rails_ctags_arguments', '--languages=-javascript')))
1085+
let args = s:split(get(g:, 'rails_ctags_arguments', '--languages=-javascript'))
10861086
exe '!'.cmd.' -f '.s:escarg(self.path("tags")).' -R --langmap="ruby:+.rake.builder.jbuilder.rjs" '.join(args,' ').' '.s:escarg(self.path())
10871087
return ''
10881088
endfunction
@@ -4155,8 +4155,7 @@ function! s:BufAbbreviations()
41554155
Rabbrev AM:: ActionMailer
41564156
Rabbrev AO:: ActiveModel
41574157
for pairs in
4158-
\ items(type(get(g:, 'rails_abbreviations', 0)) == type({}) ? g:rails_abbreviations : {}) +
4159-
\ items(rails#app().config('abbreviations'))
4158+
\ items(type(get(g:, 'rails_abbreviations', 0)) == type({}) ? g:rails_abbreviations : {})
41604159
call call(function(s:sid.'Abbrev'), [0, pairs[0]] + s:split(pairs[1]))
41614160
endfor
41624161
for hash in reverse(rails#buffer().projected('abbreviations'))
@@ -4497,8 +4496,6 @@ function! s:SetBasePath() abort
44974496
let old_path = s:pathsplit(s:sub(self.getvar('&path'),'^\.%(,|$)',''))
44984497

44994498
let path = ['lib', 'vendor']
4500-
let path += self.app().config('path_additions', [])
4501-
let path += self.app().config('path', [])
45024499
let path += get(g:, 'rails_path_additions', [])
45034500
let path += get(g:, 'rails_path', [])
45044501
let path += ['app/models/concerns', 'app/controllers/concerns', 'app/controllers', 'app/helpers', 'app/mailers', 'app/models']

0 commit comments

Comments
 (0)