aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/jsonls/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/servers/jsonls/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/jsonls/init.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/servers/jsonls/init.lua b/lua/nvim-lsp-installer/servers/jsonls/init.lua
index f1a2a643..cc9ba2bb 100644
--- a/lua/nvim-lsp-installer/servers/jsonls/init.lua
+++ b/lua/nvim-lsp-installer/servers/jsonls/init.lua
@@ -1,5 +1,4 @@
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")
@@ -9,6 +8,6 @@ return server.Server:new {
root_dir = root_dir,
installer = npm.packages { "vscode-json-languageserver" },
default_options = {
- cmd = { path.concat { root_dir, "node_modules", ".bin", "vscode-json-languageserver" }, "--stdio" },
+ cmd = { npm.executable(root_dir, "vscode-json-languageserver"), "--stdio" },
},
}