This commit is contained in:
2022-12-04 16:01:19 -05:00
parent 2b1536fb4b
commit 281f24e002
8 changed files with 772 additions and 14 deletions
+5 -1
View File
@@ -223,7 +223,11 @@ M.format_on_save_hook = function()
enabled = true
end
if enabled ~= 0 and enabled ~= false then
vim.lsp.buf.format({ async = false })
if vim.bo.filetype ~= "plaintex" and vim.bo.filetype ~= "tex" and vim.bo.filetype ~= "latex" and
vim.bo.filetype ~= "qf" and vim.bo.filetype ~= "bib" and vim.bo.filetype ~= "" and vim.bo.filetype ~= "pdf"
and vim.bo.filetype ~= "conf" then
vim.lsp.buf.format({ async = false })
end
end
end