From 286d6d8e61f8bf6543508e6ed56c53016a985164 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Thu, 26 Dec 2024 01:00:02 -0500 Subject: [PATCH] AutoYADM commit: 2024-12-26 01:00:02 --- .config/nvim/lua/plugins/vimtex.lua | 39 +++++++++++++++++++---------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/.config/nvim/lua/plugins/vimtex.lua b/.config/nvim/lua/plugins/vimtex.lua index 3d57b9a4..34a4d613 100644 --- a/.config/nvim/lua/plugins/vimtex.lua +++ b/.config/nvim/lua/plugins/vimtex.lua @@ -1,16 +1,29 @@ return { - "lervag/vimtex", - lazy = false, - config = function() - vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover - vim.g.vimtex_quickfix_method = vim.fn.executable("pplatex") == 1 and "pplatex" or "latexlog" - vim.g.vimtex_viewer_method = "zathura" - vim.g.vimtex_view_general_viewer = "zathura" - vim.g.vimtex_quickfix_open_on_warning = 0 - -- vim.g.vimtex_compiler_silent = 1 - -- vim.g.vimtex_compiler_method = "tectonic" - end, - keys = { - { "l", "", desc = "+vimtex" }, + { + "lervag/vimtex", + lazy = false, + config = function() + vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover + vim.g.vimtex_quickfix_method = vim.fn.executable("pplatex") == 1 and "pplatex" or "latexlog" + vim.g.vimtex_viewer_method = "zathura" + vim.g.vimtex_view_general_viewer = "zathura" + vim.g.vimtex_quickfix_open_on_warning = 0 + -- vim.g.vimtex_compiler_silent = 1 + -- vim.g.vimtex_compiler_method = "tectonic" + end, + keys = { + { "l", "", desc = "+vimtex" }, + }, + }, + { + "stevearc/conform.nvim", + optional = true, + opts = { + formatters_by_ft = { + -- requires install via AUR + -- TODO: add to mason registry? + tex = { "tex-fmt" }, + }, + }, }, }