This commit is contained in:
2025-09-07 12:19:33 +02:00
parent c9395198b6
commit ee7118286d
3 changed files with 3 additions and 10 deletions

View File

@@ -14,18 +14,10 @@ if not status_ok then
return
end
-- Shortcuts
--
-- old way making the LaTeX menu appears with the LSP and Lunar one
-- whk.register {
-- ["<leader>L"] = {
-- name = "LSP, Lunar, LaTeX", -- we edit the title of the L shortcut
-- }
-- }
vim.g.maplocalleader = ' ' -- we define a leader available only from tex files
whk.add {
{ '<localleader>l', hidden = true },
{ '<localleader>L', '', group = '[L]aTeX' },
{ '<localleader>Lc', '<CMD>VimtexCompileSS<CR>', desc = 'Single-shot compile project' },

View File

@@ -13,7 +13,7 @@ return {
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_mappings_enabled = false
vim.g.vimtex_quickfix_method = vim.fn.executable 'pplatex' == 1 and 'pplatex' or 'latexlog'
end,
-- keys = {

View File

@@ -11,6 +11,7 @@ return {
'folke/which-key.nvim',
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
opts = {
preset = 'helix',
-- delay between pressing a key and opening which-key (milliseconds)
-- this setting is independent of vim.o.timeoutlen
delay = 0,