aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/tsserver.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/tsserver.lua')
-rw-r--r--lua/lspconfig/tsserver.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/lspconfig/tsserver.lua b/lua/lspconfig/tsserver.lua
index 8bc11973..8de49d08 100644
--- a/lua/lspconfig/tsserver.lua
+++ b/lua/lspconfig/tsserver.lua
@@ -12,9 +12,8 @@ configs[server_name] = {
cmd = { bin_name, "--stdio" },
filetypes = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" },
root_dir = function(fname)
- return util.root_pattern "tsconfig.json"(fname) or util.root_pattern("package.json", "jsconfig.json", ".git")(
- fname
- )
+ return util.root_pattern "tsconfig.json"(fname)
+ or util.root_pattern("package.json", "jsconfig.json", ".git")(fname)
end,
},
docs = {