1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 01:00:04 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/server_configurations/purescriptls.lua

28 lines
770 B
Lua
Raw Normal View History

local util = require 'lspconfig.util'
2021-10-05 15:13:10 +08:00
local bin_name = 'purescript-language-server'
if vim.fn.has 'win32' == 1 then
bin_name = bin_name .. '.cmd'
2021-10-05 15:13:10 +08:00
end
return {
2021-10-05 15:13:10 +08:00
default_config = {
cmd = { bin_name, '--stdio' },
2021-10-05 15:13:10 +08:00
filetypes = { 'purescript' },
root_dir = util.root_pattern('bower.json', 'psc-package.json', 'spago.dhall'),
2021-10-05 15:13:10 +08:00
},
docs = {
package_json = 'https://raw.githubusercontent.com/nwolverson/vscode-ide-purescript/master/package.json',
2021-10-05 15:13:10 +08:00
description = [[
https://github.com/nwolverson/purescript-language-server
`purescript-language-server` can be installed via `npm`
```sh
npm install -g purescript-language-server
```
2021-10-05 15:13:10 +08:00
]],
default_config = {
root_dir = [[root_pattern("spago.dhall, 'psc-package.json', bower.json")]],
2021-10-05 15:13:10 +08:00
},
},
}