diff options
author | Ty Coghlan <Coghlan.Ty@gmail.com> | 2018-09-01 20:59:36 -0400 |
---|---|---|
committer | Ty Coghlan <Coghlan.Ty@gmail.com> | 2018-09-01 21:03:29 -0400 |
commit | 3d016f1697dd25443852d18a29a20c42c753dee1 (patch) | |
tree | 4b8b935ed6d3729b26d86556064feab93a95dee0 /ale_linters/scala/sbtserver.vim | |
parent | 8e3bf10592b52ba96ce94c5819a19ee8de6f0899 (diff) | |
download | ale-3d016f1697dd25443852d18a29a20c42c753dee1.zip |
Changed sbtserver to just work off of the address variable
Diffstat (limited to 'ale_linters/scala/sbtserver.vim')
-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 |