aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/jsonls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/jsonls.lua')
-rw-r--r--lua/lspconfig/jsonls.lua26
1 files changed, 13 insertions, 13 deletions
diff --git a/lua/lspconfig/jsonls.lua b/lua/lspconfig/jsonls.lua
index cef595ce..20c2753b 100644
--- a/lua/lspconfig/jsonls.lua
+++ b/lua/lspconfig/jsonls.lua
@@ -1,21 +1,21 @@
-local configs = require 'lspconfig/configs'
-local util = require 'lspconfig/util'
+local configs = require "lspconfig/configs"
+local util = require "lspconfig/util"
local server_name = "jsonls"
local bin_name = "vscode-json-language-server"
configs[server_name] = {
default_config = {
- cmd = {bin_name, "--stdio"};
- filetypes = {"json"};
+ cmd = { bin_name, "--stdio" },
+ filetypes = { "json" },
init_options = {
- provideFormatter = true;
- };
- root_dir = util.root_pattern(".git", vim.fn.getcwd());
- };
+ provideFormatter = true,
+ },
+ root_dir = util.root_pattern(".git", vim.fn.getcwd()),
+ },
docs = {
-- this language server config is in VSCode built-in package.json
- package_json = "https://raw.githubusercontent.com/microsoft/vscode/master/extensions/json-language-features/package.json";
+ package_json = "https://raw.githubusercontent.com/microsoft/vscode/master/extensions/json-language-features/package.json",
description = [[
https://github.com/hrsh7th/vscode-langservers-extracted
@@ -39,11 +39,11 @@ require'lspconfig'.jsonls.setup {
}
}
```
-]];
+]],
default_config = {
- root_dir = [[root_pattern(".git", vim.fn.getcwd())]];
- };
- };
+ root_dir = [[root_pattern(".git", vim.fn.getcwd())]],
+ },
+ },
}
-- vim:et ts=2 sw=2