Merge pull request #1883 from hsanson/add-solargraph-yml-to-root-path-search
Add solargraph.yml file as root path search file.
This commit is contained in:
commit
e0fe97e0a8
@ -29,7 +29,7 @@ function! ale#ruby#FindProjectRoot(buffer) abort
|
|||||||
return l:dir
|
return l:dir
|
||||||
endif
|
endif
|
||||||
|
|
||||||
for l:name in ['Rakefile', 'Gemfile']
|
for l:name in ['.solargraph.yml', 'Rakefile', 'Gemfile']
|
||||||
let l:dir = fnamemodify(
|
let l:dir = fnamemodify(
|
||||||
\ ale#path#FindNearestFile(a:buffer, l:name),
|
\ ale#path#FindNearestFile(a:buffer, l:name),
|
||||||
\ ':h'
|
\ ':h'
|
||||||
|
@ -27,3 +27,10 @@ Execute(should set solargraph for ruby app2):
|
|||||||
AssertLSPOptions {}
|
AssertLSPOptions {}
|
||||||
AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../ruby_fixtures/valid_ruby_app2')
|
AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../ruby_fixtures/valid_ruby_app2')
|
||||||
AssertLSPAddress '127.0.0.1:7658'
|
AssertLSPAddress '127.0.0.1:7658'
|
||||||
|
|
||||||
|
Execute(should set solargraph for ruby app3):
|
||||||
|
call ale#test#SetFilename('../ruby_fixtures/valid_ruby_app3/lib/file.rb')
|
||||||
|
AssertLSPLanguage 'ruby'
|
||||||
|
AssertLSPOptions {}
|
||||||
|
AssertLSPProject ale#path#Simplify(g:dir . 'command_callback/../ruby_fixtures/valid_ruby_app3')
|
||||||
|
AssertLSPAddress '127.0.0.1:7658'
|
||||||
|
0
test/ruby_fixtures/valid_ruby_app3/.solargraph.yml
Normal file
0
test/ruby_fixtures/valid_ruby_app3/.solargraph.yml
Normal file
0
test/ruby_fixtures/valid_ruby_app3/lib/file.rb
Normal file
0
test/ruby_fixtures/valid_ruby_app3/lib/file.rb
Normal file
Loading…
Reference in New Issue
Block a user