aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/texlab.lua
diff options
context:
space:
mode:
authorJaehwang Jung <tomtomjhj@gmail.com>2023-09-25 19:27:27 +0900
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-09-30 11:57:19 +0200
commit995603cfaecffe10e0f4bf57f92d187f86c2de39 (patch)
tree94c886e4ab5eb3ad1016f0d0672b23427ac8456d /lua/lspconfig/server_configurations/texlab.lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-995603cfaecffe10e0f4bf57f92d187f86c2de39.tar
nvim-lspconfig-995603cfaecffe10e0f4bf57f92d187f86c2de39.tar.gz
nvim-lspconfig-995603cfaecffe10e0f4bf57f92d187f86c2de39.tar.bz2
nvim-lspconfig-995603cfaecffe10e0f4bf57f92d187f86c2de39.tar.lz
nvim-lspconfig-995603cfaecffe10e0f4bf57f92d187f86c2de39.tar.xz
nvim-lspconfig-995603cfaecffe10e0f4bf57f92d187f86c2de39.tar.zst
nvim-lspconfig-995603cfaecffe10e0f4bf57f92d187f86c2de39.zip
fix(texlab): don't overly prioritize .latexmkrc
$HOME/.latexmkrc is per-user config, so it shouldn't be prioritized over closer directory containing .git.
Diffstat (limited to 'lua/lspconfig/server_configurations/texlab.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 = {