aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/texlab.lua
diff options
context:
space:
mode:
authorPhilipp Joram <phijor@users.noreply.github.com>2025-04-30 13:15:06 +0200
committerGitHub <noreply@github.com>2025-04-30 04:15:06 -0700
commit3d69858b600c51131600d03c236a2afb40a64cdd (patch)
tree79caa7e457a20a0d7a7a601a35873690142bf382 /lsp/texlab.lua
parentRevert "fix(configs): remove sanitize_cmd #3806 (diff)
downloadnvim-lspconfig-3d69858b600c51131600d03c236a2afb40a64cdd.tar
nvim-lspconfig-3d69858b600c51131600d03c236a2afb40a64cdd.tar.gz
nvim-lspconfig-3d69858b600c51131600d03c236a2afb40a64cdd.tar.bz2
nvim-lspconfig-3d69858b600c51131600d03c236a2afb40a64cdd.tar.lz
nvim-lspconfig-3d69858b600c51131600d03c236a2afb40a64cdd.tar.xz
nvim-lspconfig-3d69858b600c51131600d03c236a2afb40a64cdd.tar.zst
nvim-lspconfig-3d69858b600c51131600d03c236a2afb40a64cdd.zip
fix(texlab): add "latexmkrc" root marker for Latexmk projects #3810
Problem: The root directory of Latexmk-based projects is not detected when the local configuration file is called `latexmkrc` (without leading `.`). Solution: Both `.latexmkrc` and `latexmkrc` are valid names for local Latexmk configuration files [1]. Add `latexmk` to the list of possible root markers. [1]: https://mgeier.github.io/latexmk.html#local-configuration-files
Diffstat (limited to 'lsp/texlab.lua')
-rw-r--r--lsp/texlab.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp/texlab.lua b/lsp/texlab.lua
index 5636b031..c4be0bc0 100644
--- a/lsp/texlab.lua
+++ b/lsp/texlab.lua
@@ -164,7 +164,7 @@ end
return {
cmd = { 'texlab' },
filetypes = { 'tex', 'plaintex', 'bib' },
- root_markers = { '.git', '.latexmkrc', '.texlabroot', 'texlabroot', 'Tectonic.toml' },
+ root_markers = { '.git', '.latexmkrc', 'latexmkrc', '.texlabroot', 'texlabroot', 'Tectonic.toml' },
settings = {
texlab = {
rootDirectory = nil,