aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/texlab.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/lua/lspconfig/server_configurations/texlab.lua b/lua/lspconfig/server_configurations/texlab.lua
index e2ccfa07..e24fc301 100644
--- a/lua/lspconfig/server_configurations/texlab.lua
+++ b/lua/lspconfig/server_configurations/texlab.lua
@@ -70,9 +70,7 @@ return {
default_config = {
cmd = { 'texlab' },
filetypes = { 'tex', 'plaintex', 'bib' },
- root_dir = function(fname)
- return util.root_pattern '.latexmkrc'(fname) or util.find_git_ancestor(fname)
- end,
+ root_dir = util.root_pattern('.latexmkrc', '.git'),
single_file_support = true,
settings = {
texlab = {