diff options
| author | William Boman <william@redwill.se> | 2021-09-01 10:29:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-01 10:29:23 +0200 |
| commit | bfbf5fbd39fa75847bf23da2c46d12fe2728fb78 (patch) | |
| tree | f05d2f041f895ff639684c10f57d19f1d4a433e0 /lua/nvim-lsp-installer/servers/ansiblels | |
| parent | README: simplify example a bit, add clarifying comment (diff) | |
| download | mason-bfbf5fbd39fa75847bf23da2c46d12fe2728fb78.tar mason-bfbf5fbd39fa75847bf23da2c46d12fe2728fb78.tar.gz mason-bfbf5fbd39fa75847bf23da2c46d12fe2728fb78.tar.bz2 mason-bfbf5fbd39fa75847bf23da2c46d12fe2728fb78.tar.lz mason-bfbf5fbd39fa75847bf23da2c46d12fe2728fb78.tar.xz mason-bfbf5fbd39fa75847bf23da2c46d12fe2728fb78.tar.zst mason-bfbf5fbd39fa75847bf23da2c46d12fe2728fb78.zip | |
add Windows support (#70)
Diffstat (limited to 'lua/nvim-lsp-installer/servers/ansiblels')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/ansiblels/init.lua | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lua/nvim-lsp-installer/servers/ansiblels/init.lua b/lua/nvim-lsp-installer/servers/ansiblels/init.lua index 430d55b8..b6899b70 100644 --- a/lua/nvim-lsp-installer/servers/ansiblels/init.lua +++ b/lua/nvim-lsp-installer/servers/ansiblels/init.lua @@ -1,5 +1,6 @@ local server = require "nvim-lsp-installer.server" local path = require "nvim-lsp-installer.path" +local installers = require "nvim-lsp-installer.installers" local shell = require "nvim-lsp-installer.installers.shell" local root_dir = server.get_server_root_path "ansiblels" @@ -7,12 +8,14 @@ local root_dir = server.get_server_root_path "ansiblels" return server.Server:new { name = "ansiblels", root_dir = root_dir, - installer = shell.raw [[ - git clone --depth 1 https://github.com/ansible/ansible-language-server .; - npm install; - npm run build; - npm install --production; - ]], + installer = installers.when { + unix = shell.bash [[ + git clone --depth 1 https://github.com/ansible/ansible-language-server .; + npm install; + npm run build; + npm install --production; + ]], + }, default_options = { filetypes = { "yaml", "yaml.ansible" }, cmd = { "node", path.concat { root_dir, "out", "server", "src", "server.js" }, "--stdio" }, |
