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.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/lua/lspconfig/jsonls.lua b/lua/lspconfig/jsonls.lua
index 20c2753b..eccfc22f 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"
+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()),
+ 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