blob: 986d3e12c89ea511b0dfc6b92774b3f08fc8962b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
local configs = require "lspconfig/configs"
local util = require "lspconfig/util"
local server_name = "purescriptls"
local bin_name = "purescript-language-server"
if vim.fn.has "win32" == 1 then
bin_name = bin_name .. ".cmd"
end
configs[server_name] = {
default_config = {
cmd = { bin_name, "--stdio" },
filetypes = { "purescript" },
root_dir = util.root_pattern("spago.dhall", "bower.json"),
},
docs = {
package_json = "https://raw.githubusercontent.com/nwolverson/vscode-ide-purescript/master/package.json",
description = [[
https://github.com/nwolverson/purescript-language-server
`purescript-language-server` can be installed via `npm`
```sh
npm install -g purescript-language-server
```
]],
default_config = {
root_dir = [[root_pattern("spago.dhall, bower.json")]],
},
},
}
-- vim:et ts=2 sw=2
|