blob: a93069a0a22ab4f96dd7a5f8e7ab62fffa3f1e1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
local server = require("nvim-lsp-installer.server")
local path = require("nvim-lsp-installer.path")
local npm = require("nvim-lsp-installer.installers.npm")
local root_dir = server.get_server_root_path("yaml")
return server.Server:new {
name = "yamlls",
root_dir = root_dir,
install_cmd = npm.packages { "yaml-language-server" },
default_options = {
cmd = { path.concat { root_dir, "node_modules", ".bin", "yaml-language-server" }, "--stdio" },
}
}
|