diff --git a/lua/lspconfig/server_configurations/texlab.lua b/lua/lspconfig/server_configurations/texlab.lua index e24fc301c3..2cef713157 100644 --- a/lua/lspconfig/server_configurations/texlab.lua +++ b/lua/lspconfig/server_configurations/texlab.lua @@ -70,7 +70,7 @@ return { default_config = { cmd = { 'texlab' }, filetypes = { 'tex', 'plaintex', 'bib' }, - root_dir = util.root_pattern('.latexmkrc', '.git'), + root_dir = util.root_pattern('.git', '.latexmkrc'), single_file_support = true, settings = { texlab = {