aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/jsonls.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-07-03 15:55:59 -0700
committerGitHub <noreply@github.com>2021-07-03 15:55:59 -0700
commite1160be89ae6a3ece4664c8e32a82b8637f4b177 (patch)
tree77d533dc9606ca7e9b30d1a96baebf3de325d2a8 /lua/lspconfig/jsonls.lua
parent[docgen] Update CONFIG.md (diff)
parentci: lint and format with stylua (diff)
downloadnvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar
nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.gz
nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.bz2
nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.lz
nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.xz
nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.tar.zst
nvim-lspconfig-e1160be89ae6a3ece4664c8e32a82b8637f4b177.zip
Merge pull request #1029 from mjlbach/ci/format_with_stylua
ci: lint and format with stylua
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