diff options
author | Chris <[email protected]> | 2021-03-25 19:58:40 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2021-03-25 19:58:40 -0400 |
commit | f52a6870a7bd9ec729bbde6729ec68334a9d2a4d (patch) | |
tree | 19c6ff1b21e73c74c6282cb0dff86135ccd98de9 /lua/lsp/json-ls.lua | |
parent | 36e9fdf69e1da2d09cbd3de5fbcd71fc7e5f16d1 (diff) |
add support LspInstall where possible
Diffstat (limited to 'lua/lsp/json-ls.lua')
-rw-r--r-- | lua/lsp/json-ls.lua | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lua/lsp/json-ls.lua b/lua/lsp/json-ls.lua index 57c13224..952673ac 100644 --- a/lua/lsp/json-ls.lua +++ b/lua/lsp/json-ls.lua @@ -1,11 +1,16 @@ -- npm install -g vscode-json-languageserver require'lspconfig'.jsonls.setup { + cmd = { + "node", DATA_PATH .. "/lspinstall/json/vscode-json/json-language-features/server/dist/node/jsonServerMain.js", + "--stdio" + }, on_attach = require'lsp'.common_on_attach, + commands = { - Format = { - function() - vim.lsp.buf.range_formatting({},{0,0},{vim.fn.line("$"),0}) - end - } + Format = { + function() + vim.lsp.buf.range_formatting({}, {0, 0}, {vim.fn.line("$"), 0}) + end + } } } |