Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Add bicep language server #155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ end
|-------------|-----------------------------------------------------------------------------|
| angular | Angular Language Service |
| bash | bash-language-server |
| bicep | Bicep Language Server |
| clojure | clojure-lsp |
| cmake | cmake-language-server |
| cpp | clangd |
Expand Down
1 change: 1 addition & 0 deletions lua/lspinstall/servers.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local servers = {
["angular"] = require'lspinstall/servers/angular',
["bash"] = require'lspinstall/servers/bash',
["bicep"] = require'lspinstall/servers/bicep',
["clojure"] = require'lspinstall/servers/clojure',
["cmake"] = require'lspinstall/servers/cmake',
["cpp"] = require'lspinstall/servers/cpp',
Expand Down
9 changes: 9 additions & 0 deletions lua/lspinstall/servers/bicep.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
local config = require('lspinstall/util').extract_config('bicep')

return vim.tbl_extend('error', config, {
install_script = [[
curl -fLO https://github.com/Azure/bicep/releases/latest/download/bicep-langserver.zip
unzip bicep-langserver.zip
rm bicep-langserver.zip
]],
})