Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(psalm): psalm now uses a --language-server option #2929

Merged
merged 4 commits into from
Dec 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions lua/lspconfig/server_configurations/psalm.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
local util = require 'lspconfig.util'

local bin_name = 'psalm-language-server'

if vim.fn.has 'win32' == 1 then
bin_name = bin_name .. '.bat'
end
local cmd = {
'psalm',
'--language-server',
}
Ultra-Code marked this conversation as resolved.
Show resolved Hide resolved

return {
default_config = {
cmd = { bin_name },
cmd = cmd,
Ultra-Code marked this conversation as resolved.
Show resolved Hide resolved
filetypes = { 'php' },
root_dir = util.root_pattern('psalm.xml', 'psalm.xml.dist'),
},
Expand All @@ -22,7 +21,7 @@ composer global require vimeo/psalm
```
]],
default_config = {
cmd = { 'psalm-language-server' },
cmd = cmd,
Ultra-Code marked this conversation as resolved.
Show resolved Hide resolved
root_dir = [[root_pattern("psalm.xml", "psalm.xml.dist")]],
},
},
Expand Down
Loading