diff options
| author | William Boman <william@redwill.se> | 2022-01-15 18:19:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-15 09:19:11 -0800 |
| commit | 89eda6c9ba3ded27ecd38dfcee811c11c91eae05 (patch) | |
| tree | dbd984f84ac7526c2f71ce44266c29c2d72b3f4d /lua/lspconfig | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-89eda6c9ba3ded27ecd38dfcee811c11c91eae05.tar nvim-lspconfig-89eda6c9ba3ded27ecd38dfcee811c11c91eae05.tar.gz nvim-lspconfig-89eda6c9ba3ded27ecd38dfcee811c11c91eae05.tar.bz2 nvim-lspconfig-89eda6c9ba3ded27ecd38dfcee811c11c91eae05.tar.lz nvim-lspconfig-89eda6c9ba3ded27ecd38dfcee811c11c91eae05.tar.xz nvim-lspconfig-89eda6c9ba3ded27ecd38dfcee811c11c91eae05.tar.zst nvim-lspconfig-89eda6c9ba3ded27ecd38dfcee811c11c91eae05.zip | |
fix(psalm): use .bat on Windows (#1660)
Diffstat (limited to 'lua/lspconfig')
| -rw-r--r-- | lua/lspconfig/server_configurations/psalm.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/psalm.lua b/lua/lspconfig/server_configurations/psalm.lua index b7f155d2..01f75819 100644 --- a/lua/lspconfig/server_configurations/psalm.lua +++ b/lua/lspconfig/server_configurations/psalm.lua @@ -1,8 +1,14 @@ local util = require 'lspconfig.util' +local bin_name = 'psalm-language-server' + +if vim.fn.has 'win32' == 1 then + bin_name = bin_name .. '.bat' +end + return { default_config = { - cmd = { 'psalm-language-server' }, + cmd = { bin_name }, filetypes = { 'php' }, root_dir = util.root_pattern('psalm.xml', 'psalm.xml.dist'), }, |
