Files
nvim-modular/lua/kickstart/plugins/latex.lua
2025-08-28 00:58:30 +02:00

20 lines
514 B
Lua

-- latex
--
--
vim.g.maplocalleader = ' ' -- we define a leader available only from tex files
return {
{
'lervag/vimtex',
lazy = false, -- lazy-loading will disable inverse search
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'
end,
keys = {
{ '<localLeader>l', '', desc = 'LaTeX', ft = 'tex' },
},
},
}