diff options
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/scala/sbtserver.vim | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/ale_linters/scala/sbtserver.vim b/ale_linters/scala/sbtserver.vim index 3092dc13..d75c38ca 100644 --- a/ale_linters/scala/sbtserver.vim +++ b/ale_linters/scala/sbtserver.vim @@ -1,7 +1,7 @@ " Author: ophirr33 <coghlan.ty@gmail.com> " Description: TCP lsp client for sbt Server -call ale#Set('scala_sbtserver_address', '') +call ale#Set('scala_sbtserver_address', '127.0.0.1:4273') call ale#Set('scala_sbtserver_project_root', '') function! ale_linters#scala#sbtserver#GetProjectRoot(buffer) abort @@ -15,16 +15,6 @@ endfunction function! ale_linters#scala#sbtserver#GetAddress(buffer) abort let l:address = ale#Var(a:buffer, 'scala_sbtserver_address') - if l:address is? '' - let l:project_root = ale_linters#scala#sbtserver#GetProjectRoot(a:buffer) - let l:active_file = l:project_root . '/project/target/active.json' - if !empty(glob(l:active_file)) - let l:active = json_decode(join(readfile(l:project_root . '/project/target/active.json'))) - if has_key(l:active, 'uri') - return substitute(l:active.uri, 'tcp://', '', '') - endif - endif - endif return l:address endfunction |