diff options
| author | YAMAMOTO Yuji <yuji-yamamoto@iij.ad.jp> | 2020-11-16 18:13:18 +0900 |
|---|---|---|
| committer | YAMAMOTO Yuji <yuji-yamamoto@iij.ad.jp> | 2020-11-16 18:55:46 +0900 |
| commit | ebd9802b6aafd463236605c18ea868d24d74acee (patch) | |
| tree | c092e7a756674e6876044c31b666d2e325b313fc /lua/lspconfig/purescriptls.lua | |
| parent | Merge pull request #399 from Iron-E/patch-1 (diff) | |
| download | nvim-lspconfig-ebd9802b6aafd463236605c18ea868d24d74acee.tar nvim-lspconfig-ebd9802b6aafd463236605c18ea868d24d74acee.tar.gz nvim-lspconfig-ebd9802b6aafd463236605c18ea868d24d74acee.tar.bz2 nvim-lspconfig-ebd9802b6aafd463236605c18ea868d24d74acee.tar.lz nvim-lspconfig-ebd9802b6aafd463236605c18ea868d24d74acee.tar.xz nvim-lspconfig-ebd9802b6aafd463236605c18ea868d24d74acee.tar.zst nvim-lspconfig-ebd9802b6aafd463236605c18ea868d24d74acee.zip | |
Add extension to purescriptls command name on Windows
Diffstat (limited to 'lua/lspconfig/purescriptls.lua')
| -rw-r--r-- | lua/lspconfig/purescriptls.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/lspconfig/purescriptls.lua b/lua/lspconfig/purescriptls.lua index 14465d5b..6bd9d5d3 100644 --- a/lua/lspconfig/purescriptls.lua +++ b/lua/lspconfig/purescriptls.lua @@ -3,6 +3,9 @@ local util = require 'lspconfig/util' local server_name = "purescriptls" local bin_name = "purescript-language-server" +if vim.fn.has('win32') == 1 then + bin_name = bin_name..'.cmd' +end local installer = util.npm_installer { server_name = server_name; @@ -12,7 +15,7 @@ local installer = util.npm_installer { configs[server_name] = { default_config = { - cmd = {"purescript-language-server", "--stdio"}; + cmd = {bin_name, "--stdio"}; filetypes = {"purescript"}; root_dir = util.root_pattern("spago.dhall", "bower.json"); }; |
