aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-01-15 18:19:11 +0100
committerGitHub <noreply@github.com>2022-01-15 09:19:11 -0800
commit89eda6c9ba3ded27ecd38dfcee811c11c91eae05 (patch)
treedbd984f84ac7526c2f71ce44266c29c2d72b3f4d /lua/lspconfig
parentdocs: update server_configurations.md (diff)
downloadnvim-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.lua8
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'),
},