2m / sssio

Discover and interface with sbt server using standard input and output

GitHub

sssio scaladex-badge travis-badge gitter-badge

sbt server talks Language Server Protocol using Unix domain sockets. sssio (sbt server standard input and output) automatically discovers sbt server's opened socket and converts it to standard input and output which most of the editors expect.

Setup

If you are using neovim with autozimu/LanguageClient-neovim then add the following to your ~/.config/nvim/init.vim:

let g:LanguageClient_serverCommands = {
    \ 'scala': ['coursier', 'launch', 'lt.dvim.sssio:sssio_2.12:0.0.1'],
    \ }

This uses coursier to fetch the artifacts. If you are running Archlinux you can install coursier from AUR.

Config

To write all of the communication between sbt and LSP client to a file, add the following parameter:

-Dsssio.logfile=target/sssio.log

Licence

Copyright 2018 https://github.com/2m/sssio/graphs/contributors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.