diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2021-11-18 14:32:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-18 05:32:08 -0800 |
| commit | 93c0512fa0ff07e557a613d7d3e54a3afb944e7e (patch) | |
| tree | 5f04c1720205ea4284af81dbd88b7063c3b5e889 /lua/lspconfig/texlab.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-93c0512fa0ff07e557a613d7d3e54a3afb944e7e.tar nvim-lspconfig-93c0512fa0ff07e557a613d7d3e54a3afb944e7e.tar.gz nvim-lspconfig-93c0512fa0ff07e557a613d7d3e54a3afb944e7e.tar.bz2 nvim-lspconfig-93c0512fa0ff07e557a613d7d3e54a3afb944e7e.tar.lz nvim-lspconfig-93c0512fa0ff07e557a613d7d3e54a3afb944e7e.tar.xz nvim-lspconfig-93c0512fa0ff07e557a613d7d3e54a3afb944e7e.tar.zst nvim-lspconfig-93c0512fa0ff07e557a613d7d3e54a3afb944e7e.zip | |
fix(texlab): add language-specific root marker (#1441)
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", - }, }, } |
