From a3baba36a355fec7a5d6991894d4f55e1ab6f2c6 Mon Sep 17 00:00:00 2001 From: yourealwaysbe Date: Fri, 22 Jul 2022 15:29:25 +0100 Subject: feat(texlab): support plaintex #2022 Sometimes simple LaTeX documents are detected as plaintex rather than tex, meaning texlab will not be applied without a manual change of filetype. --- lua/lspconfig/server_configurations/texlab.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/texlab.lua b/lua/lspconfig/server_configurations/texlab.lua index 88bfa20c..ba5b16f8 100644 --- a/lua/lspconfig/server_configurations/texlab.lua +++ b/lua/lspconfig/server_configurations/texlab.lua @@ -66,7 +66,7 @@ end return { default_config = { cmd = { 'texlab' }, - filetypes = { 'tex', 'bib' }, + filetypes = { 'tex', 'plaintex', 'bib' }, root_dir = function(fname) return util.root_pattern '.latexmkrc'(fname) or util.find_git_ancestor(fname) end, -- cgit v1.2.3-70-g09d2