Skip to content

Commit

Permalink
fix(psalm): psalm now uses a --language-server option (#2929)
Browse files Browse the repository at this point in the history
* fix(psalm): psalm now uses a --language-server option
  • Loading branch information
Ultra-Code authored Dec 14, 2023
1 parent f451052 commit f851783
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lua/lspconfig/server_configurations/psalm.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
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 = { bin_name },
cmd = {'psalm', '--language-server'},
filetypes = { 'php' },
root_dir = util.root_pattern('psalm.xml', 'psalm.xml.dist'),
},
Expand All @@ -22,7 +17,7 @@ composer global require vimeo/psalm
```
]],
default_config = {
cmd = { 'psalm-language-server' },
cmd = {'psalm', '--language-server'},
root_dir = [[root_pattern("psalm.xml", "psalm.xml.dist")]],
},
},
Expand Down

0 comments on commit f851783

Please sign in to comment.