From 995603cfaecffe10e0f4bf57f92d187f86c2de39 Mon Sep 17 00:00:00 2001 From: Jaehwang Jung Date: Mon, 25 Sep 2023 19:27:27 +0900 Subject: fix(texlab): don't overly prioritize .latexmkrc $HOME/.latexmkrc is per-user config, so it shouldn't be prioritized over closer directory containing .git. --- lua/lspconfig/server_configurations/texlab.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lua/lspconfig/server_configurations/texlab.lua') 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 = { -- cgit v1.2.3-70-g09d2