diff options
| author | William Boman <william@redwill.se> | 2021-10-17 21:39:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-17 21:39:24 +0200 |
| commit | 7f8484bd47c673301728bf3b86a53ac1fd519392 (patch) | |
| tree | f5fef1ca9b6bfb860270501dfe3c6324a7815326 /lua | |
| parent | doc: fix indentation once again (diff) | |
| download | mason-7f8484bd47c673301728bf3b86a53ac1fd519392.tar mason-7f8484bd47c673301728bf3b86a53ac1fd519392.tar.gz mason-7f8484bd47c673301728bf3b86a53ac1fd519392.tar.bz2 mason-7f8484bd47c673301728bf3b86a53ac1fd519392.tar.lz mason-7f8484bd47c673301728bf3b86a53ac1fd519392.tar.xz mason-7f8484bd47c673301728bf3b86a53ac1fd519392.tar.zst mason-7f8484bd47c673301728bf3b86a53ac1fd519392.zip | |
add powershell_es (#168)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/init.lua | 1 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/servers/powershell_es/init.lua | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/servers/init.lua b/lua/nvim-lsp-installer/servers/init.lua index 3a72dc6e..abace672 100644 --- a/lua/nvim-lsp-installer/servers/init.lua +++ b/lua/nvim-lsp-installer/servers/init.lua @@ -77,6 +77,7 @@ local CORE_SERVERS = Data.set_of { "ocamlls", "omnisharp", "phpactor", + "powershell_es", "prismals", "puppet", "purescriptls", diff --git a/lua/nvim-lsp-installer/servers/powershell_es/init.lua b/lua/nvim-lsp-installer/servers/powershell_es/init.lua new file mode 100644 index 00000000..9a6e5acf --- /dev/null +++ b/lua/nvim-lsp-installer/servers/powershell_es/init.lua @@ -0,0 +1,24 @@ +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" +local installers = require "nvim-lsp-installer.installers" + +return function(name, root_dir) + return server.Server:new { + name = name, + root_dir = root_dir, + homepage = "https://github.com/PowerShell/PowerShellEditorServices", + installer = installers.when { + win = { + context.github_release_file("PowerShell/PowerShellEditorServices", "PowerShellEditorServices.zip"), + context.capture(function(ctx) + return std.unzip_remote(ctx.github_release_file) + end), + }, + }, + default_options = { + bundle_path = path.concat { root_dir }, + }, + } +end |
