1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 12:40:05 +08:00
SpaceVim/bundle/nvim-lspconfig-0.1.4/lua/lspconfig/server_configurations/erg_language_server.lua
2023-03-29 11:59:27 +08:00

27 lines
591 B
Lua

local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'els' },
filetypes = { 'erg' },
root_dir = function(fname)
return util.root_pattern 'package.er'(fname) or util.find_git_ancestor(fname)
end,
},
docs = {
description = [[
https://github.com/erg-lang/erg-language-server
ELS (erg-language-server) is a language server for the Erg programming language.
`els` can be installed via `cargo`:
```sh
cargo install els
```
]],
default_config = {
root_dir = [[root_pattern("package.er") or find_git_ancestor]],
},
},
}