dotfiles/.config/lite-xl/plugins/lsp_json/init.lua

12 lines
481 B
Lua

-- mod-version:3
local lspconfig = require "plugins.lsp.config"
local common = require "core.common"
local config = require "core.config"
local installed_path = USERDIR .. PATHSEP .. "plugins" .. PATHSEP .. "lsp_json" .. PATHSEP .. "vscode-json-languageserver" .. PATHSEP .. "dist" .. PATHSEP .. "index.js"
local node = require "libraries.nodejs"
lspconfig.jsonls.setup(common.merge({
command = { node.path_bin, installed_path, "--stdio" },
}, config.plugins.lsp_json or {}))