diff options
Diffstat (limited to 'lua/lspconfig/texlab.lua')
| -rw-r--r-- | lua/lspconfig/texlab.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lua/lspconfig/texlab.lua b/lua/lspconfig/texlab.lua index c1612255..c1e2c30a 100644 --- a/lua/lspconfig/texlab.lua +++ b/lua/lspconfig/texlab.lua @@ -69,7 +69,9 @@ configs.texlab = { default_config = { cmd = { 'texlab' }, filetypes = { 'tex', 'bib' }, - root_dir = util.find_git_ancestor, + root_dir = function(fname) + return util.root_pattern '.latexmkrc'(fname) or util.find_git_ancestor(fname) + end, single_file_support = true, settings = { texlab = { @@ -122,9 +124,6 @@ A completion engine built from scratch for (La)TeX. See https://github.com/latex-lsp/texlab/blob/master/docs/options.md for configuration options. ]], - default_config = { - root_dir = "vim's starting directory", - }, }, } |
