aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/jsonls/init.lua
blob: b99a81033dfa6bbb2d1e8d8fc771fa10d8c11148 (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("json")

return server.Server:new {
    name = "jsonls",
    root_dir = root_dir,
    install_cmd = npm.packages { "vscode-json-languageserver" },
    default_options = {
        cmd = { path.concat { root_dir, "node_modules", ".bin", "vscode-json-languageserver" }, "--stdio" },
    },
}