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/clojure_lsp | |
| 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/clojure_lsp')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/clojure_lsp/init.lua | 5 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/servers/clojure_lsp/install.mjs | 11 |
2 files changed, 4 insertions, 12 deletions
diff --git a/lua/nvim-lsp-installer/servers/clojure_lsp/init.lua b/lua/nvim-lsp-installer/servers/clojure_lsp/init.lua index 6f54129e..8f22b676 100644 --- a/lua/nvim-lsp-installer/servers/clojure_lsp/init.lua +++ b/lua/nvim-lsp-installer/servers/clojure_lsp/init.lua @@ -1,4 +1,5 @@ local server = require "nvim-lsp-installer.server" +local installers = require "nvim-lsp-installer.installers" local path = require "nvim-lsp-installer.path" local zx = require "nvim-lsp-installer.installers.zx" @@ -7,7 +8,9 @@ local root_dir = server.get_server_root_path "clojure_lsp" return server.Server:new { name = "clojure_lsp", root_dir = root_dir, - installer = zx.file "./install.mjs", + installer = installers.when { + unix = zx.file "./install.mjs", + }, default_options = { cmd = { path.concat { root_dir, "clojure-lsp" } }, }, diff --git a/lua/nvim-lsp-installer/servers/clojure_lsp/install.mjs b/lua/nvim-lsp-installer/servers/clojure_lsp/install.mjs index 29cbb77b..049e983c 100644 --- a/lua/nvim-lsp-installer/servers/clojure_lsp/install.mjs +++ b/lua/nvim-lsp-installer/servers/clojure_lsp/install.mjs @@ -1,20 +1,9 @@ const VERSION = "2021.07.01-19.49.02"; -const exitNotSupported = () => { - console.error( - chalk.red(`${os.platform()} ${os.arch()} is currently not supported.`) - ); - process.exit(1); -}; - const target = (() => { switch (os.platform()) { case "darwin": return "clojure-lsp-native-macos-amd64.zip"; - case "win32": { - exitNotSupported(); - break; - } default: return "clojure-lsp-native-linux-amd64.zip"; } |
