1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-10 12:35:47 +08:00
SpaceVim/bundle/nvim-lspconfig-latest/lua/lspconfig/server_configurations/psalm.lua
2024-05-21 12:31:14 +08:00

24 lines
505 B
Lua

local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'psalm', '--language-server' },
filetypes = { 'php' },
root_dir = util.root_pattern('psalm.xml', 'psalm.xml.dist'),
},
docs = {
description = [[
https://github.com/vimeo/psalm
Can be installed with composer.
```sh
composer global require vimeo/psalm
```
]],
default_config = {
cmd = { 'psalm', '--language-server' },
root_dir = [[root_pattern("psalm.xml", "psalm.xml.dist")]],
},
},
}