24 lines
690 B
Lua
24 lines
690 B
Lua
-- latex
|
|
--
|
|
-- VimTeX is a modern Vim and Neovim filetype and syntax plugin for LaTeX files.
|
|
--
|
|
-- https://github.com/lervag/vimtex
|
|
--
|
|
|
|
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_mappings_enabled = false
|
|
vim.g.vimtex_quickfix_method = vim.fn.executable 'pplatex' == 1 and 'pplatex' or 'latexlog'
|
|
end,
|
|
-- keys = {
|
|
-- { '<localLeader>l', '', desc = 'LaTeX', ft = 'tex' },
|
|
-- },
|
|
},
|
|
}
|