diff options
| author | William Boman <william@redwill.se> | 2022-07-06 19:41:43 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2022-07-07 00:39:59 +0200 |
| commit | 5f634e0c37e723fc0c33e06b4fd5c2180178db40 (patch) | |
| tree | fa4f09363adefa8259e23e4d1ea036db628b1243 /lua/nvim-lsp-installer/servers/erlangls/init.lua | |
| parent | feat(health): use stderr for java version, also check for JAVA_HOME (#765) (diff) | |
| download | mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.gz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.bz2 mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.lz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.xz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.zst mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.zip | |
mason.nvim
Diffstat (limited to 'lua/nvim-lsp-installer/servers/erlangls/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/erlangls/init.lua | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/lua/nvim-lsp-installer/servers/erlangls/init.lua b/lua/nvim-lsp-installer/servers/erlangls/init.lua deleted file mode 100644 index 2ae7403a..00000000 --- a/lua/nvim-lsp-installer/servers/erlangls/init.lua +++ /dev/null @@ -1,36 +0,0 @@ -local server = require "nvim-lsp-installer.server" -local path = require "nvim-lsp-installer.core.path" -local process = require "nvim-lsp-installer.core.process" -local platform = require "nvim-lsp-installer.core.platform" -local std = require "nvim-lsp-installer.core.managers.std" -local git = require "nvim-lsp-installer.core.managers.git" -local github = require "nvim-lsp-installer.core.managers.github" -local Optional = require "nvim-lsp-installer.core.optional" - -return function(name, root_dir) - local rebar3 = platform.is_win and "rebar3.cmd" or "rebar3" - - return server.Server:new { - name = name, - root_dir = root_dir, - languages = { "erlang" }, - homepage = "https://erlang-ls.github.io/", - ---@param ctx InstallContext - installer = function(ctx) - std.ensure_executable(rebar3, { help_url = "http://rebar3.org/docs/" }) - - local repo = "erlang-ls/erlang_ls" - local source = github.tag { repo = repo } - source.with_receipt() - git.clone { ("https://github.com/%s.git"):format(repo), version = Optional.of(source.tag) } - - ctx.spawn[rebar3] { "escriptize" } - ctx.spawn[rebar3] { "as", "dap", "escriptize" } - end, - default_options = { - cmd_env = { - PATH = process.extend_path { path.concat { root_dir, "_build", "default", "bin" } }, - }, - }, - } -end |
