Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document support for kakoune #91

Open
joeitu opened this issue Mar 16, 2020 · 1 comment
Open

Document support for kakoune #91

joeitu opened this issue Mar 16, 2020 · 1 comment

Comments

@joeitu
Copy link

joeitu commented Mar 16, 2020

Question
Installation seems to be specific to editor but theere is no documentation on how to install metals for kakoune.

@ckipp01 ckipp01 transferred this issue from scalameta/metals Mar 16, 2020
@ckipp01
Copy link
Member

ckipp01 commented Mar 16, 2020

I've gone ahead and moved this over to the feature requests @joeitu since we currently don't have any explicit documented support for kakoune, but it'd be great to either keep an eye on it or to actually add it if there is enough support.

I actually looked into this a while ago as I had a colleague that wanted to try it out, but one of the initial blockers was that window/showMessageRequest wasn't supported by kak-lsp (no idea if it is now), so right off the bat, when you opened up a project the user would never be prompted to import the build. However, there are ways around this.

In the meantime, if you'd like to try this out, you can follow the instructions found here, but switch out vim for kakoune, so it'd look like below:

curl -L -o coursier https://git.io/coursier-cli
chmod +x coursier
./coursier bootstrap \
  --java-opt -Xss4m \
  --java-opt -Xms100m \
  --java-opt -Dmetals.client=kakoune \
  org.scalameta:metals_2.12:0.8.1 \
  -r bintray:scalacenter/releases \
  -r sonatype:snapshots \
  -o /usr/local/bin/metals-kakoune -f

Putting in kakoune won't really do anything since we don't account for it in the MetalsServerConfig. However, we could introduce it if needed. Then, you can register the server with kak-lsp by referencing metals-kakoune. Then, since you won't be prompted to import the project, you may have to run sbt bloopInstall manually. After that, it should actually work depending on the level of lsp support that kakoune has.

If I get some more time, I can look into this since it is something that interests me.

@ckipp01 ckipp01 changed the title Support for kakoune Document support for kakoune Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants