diff options
| author | Jaehwang Jung <tomtomjhj@gmail.com> | 2023-09-25 19:27:27 +0900 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-09-30 11:57:19 +0200 |
| commit | 995603cfaecffe10e0f4bf57f92d187f86c2de39 (patch) | |
| tree | 94c886e4ab5eb3ad1016f0d0672b23427ac8456d /lua/lspconfig/server_configurations/texlab.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-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.lua | 4 |
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 = { |
