mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 09:50:04 +08:00
30 lines
683 B
Lua
30 lines
683 B
Lua
local configs = require 'lspconfig/configs'
|
|
local util = require 'lspconfig/util'
|
|
|
|
local server_name = 'ember'
|
|
local bin_name = 'ember-language-server'
|
|
|
|
configs[server_name] = {
|
|
default_config = {
|
|
cmd = { bin_name, '--stdio' },
|
|
filetypes = { 'handlebars', 'typescript', 'javascript' },
|
|
root_dir = util.root_pattern('ember-cli-build.js', '.git'),
|
|
},
|
|
docs = {
|
|
description = [[
|
|
https://github.com/lifeart/ember-language-server
|
|
|
|
`ember-language-server` can be installed via `npm`:
|
|
|
|
```sh
|
|
npm install -g @lifeart/ember-language-server
|
|
```
|
|
]],
|
|
default_config = {
|
|
root_dir = [[root_pattern("ember-cli-build.js", ".git")]],
|
|
},
|
|
},
|
|
}
|
|
|
|
-- vim:et ts=2 sw=2
|