diff options
| author | William Boman <william@redwill.se> | 2021-10-05 19:34:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-05 19:34:37 +0200 |
| commit | e4b01d3e5288be216f5521644f5c4d196012dcc3 (patch) | |
| tree | 0fcfc7f12e6c388ed3a1823d9eb00cfaa28b6400 /lua/nvim-lsp-installer/servers | |
| parent | add lemminx (#131) (diff) | |
| download | mason-e4b01d3e5288be216f5521644f5c4d196012dcc3.tar mason-e4b01d3e5288be216f5521644f5c4d196012dcc3.tar.gz mason-e4b01d3e5288be216f5521644f5c4d196012dcc3.tar.bz2 mason-e4b01d3e5288be216f5521644f5c4d196012dcc3.tar.lz mason-e4b01d3e5288be216f5521644f5c4d196012dcc3.tar.xz mason-e4b01d3e5288be216f5521644f5c4d196012dcc3.tar.zst mason-e4b01d3e5288be216f5521644f5c4d196012dcc3.zip | |
add bicep (#132)
Diffstat (limited to 'lua/nvim-lsp-installer/servers')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/bicep/init.lua | 23 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/servers/init.lua | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/servers/bicep/init.lua b/lua/nvim-lsp-installer/servers/bicep/init.lua new file mode 100644 index 00000000..3e92e700 --- /dev/null +++ b/lua/nvim-lsp-installer/servers/bicep/init.lua @@ -0,0 +1,23 @@ +local server = require "nvim-lsp-installer.server" +local path = require "nvim-lsp-installer.path" +local std = require "nvim-lsp-installer.installers.std" +local context = require "nvim-lsp-installer.installers.context" + +return function(name, root_dir) + return server.Server:new { + name = name, + root_dir = root_dir, + installer = { + std.ensure_executables { + { "dotnet", "dotnet is required to run the bicep language server." }, + }, + context.github_release_file("Azure/bicep", "bicep-langserver.zip"), + context.capture(function(ctx) + return std.unzip_remote(ctx.github_release_file) + end), + }, + default_options = { + cmd = { "dotnet", path.concat { root_dir, "Bicep.LangServer.dll" } }, + }, + } +end diff --git a/lua/nvim-lsp-installer/servers/init.lua b/lua/nvim-lsp-installer/servers/init.lua index fd2b83ed..b7f497a2 100644 --- a/lua/nvim-lsp-installer/servers/init.lua +++ b/lua/nvim-lsp-installer/servers/init.lua @@ -42,6 +42,7 @@ local CORE_SERVERS = Data.set_of { "angularls", "ansiblels", "bashls", + "bicep", "clangd", "clojure_lsp", "cmake", |
