aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/metals.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-11-24 23:01:07 -0500
committerMichael Lingelbach <m.j.lbach@gmail.com>2021-11-25 23:46:21 -0500
commit6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e (patch)
tree7f2bf25ca5456b23304295dba8fe0005e85a5c10 /lua/lspconfig/metals.lua
parentfix: only set cmd_cwd if filepath exists (#1485) (diff)
downloadnvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar.gz
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar.bz2
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar.lz
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar.xz
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar.zst
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.zip
feat: expose configs
Diffstat (limited to 'lua/lspconfig/metals.lua')
-rw-r--r--lua/lspconfig/metals.lua48
1 files changed, 0 insertions, 48 deletions
diff --git a/lua/lspconfig/metals.lua b/lua/lspconfig/metals.lua
deleted file mode 100644
index 45e54bd4..00000000
--- a/lua/lspconfig/metals.lua
+++ /dev/null
@@ -1,48 +0,0 @@
-local configs = require 'lspconfig/configs'
-local util = require 'lspconfig/util'
-local server_name = 'metals'
-local bin_name = 'metals'
-
-configs[server_name] = {
- default_config = {
- cmd = { bin_name },
- filetypes = { 'scala' },
- root_dir = util.root_pattern('build.sbt', 'build.sc', 'build.gradle', 'pom.xml'),
- message_level = vim.lsp.protocol.MessageType.Log,
- init_options = {
- statusBarProvider = 'show-message',
- isHttpEnabled = true,
- compilerOptions = {
- snippetAutoIndent = false,
- },
- },
- },
- docs = {
- description = [[
-https://scalameta.org/metals/
-
-Scala language server with rich IDE features.
-
-See full instructions in the Metals documentation:
-
-https://scalameta.org/metals/docs/editors/vim.html#using-an-alternative-lsp-client
-
-Note: that if you're using [nvim-metals](https://github.com/scalameta/nvim-metals), that plugin fully handles the setup and installation of Metals, and you shouldn't set up Metals both with it and `lspconfig`.
-
-To install Metals, make sure to have [coursier](https://get-coursier.io/docs/cli-installation) installed, and once you do you can install the latest Metals with `cs install metals`. You can also manually bootstrap Metals with the following command.
-
-```bash
-cs bootstrap \
- --java-opt -Xss4m \
- --java-opt -Xms100m \
- org.scalameta:metals_2.12:<enter-version-here> \
- -r bintray:scalacenter/releases \
- -r sonatype:snapshots \
- -o /usr/local/bin/metals -f
-```
-]],
- default_config = {
- root_dir = [[util.root_pattern("build.sbt", "build.sc", "build.gradle", "pom.xml")]],
- },
- },
-}