diff --git a/ftplugin/tex.lua b/ftplugin/tex.lua index b98df43..59e5767 100644 --- a/ftplugin/tex.lua +++ b/ftplugin/tex.lua @@ -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 { --- ["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 { + { 'l', hidden = true }, { 'L', '', group = '[L]aTeX' }, { 'Lc', 'VimtexCompileSS', desc = 'Single-shot compile project' }, diff --git a/lua/kickstart/plugins/latex.lua b/lua/kickstart/plugins/latex.lua index c92ff22..284bff5 100644 --- a/lua/kickstart/plugins/latex.lua +++ b/lua/kickstart/plugins/latex.lua @@ -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 = { diff --git a/lua/kickstart/plugins/which-key.lua b/lua/kickstart/plugins/which-key.lua index 5f0d333..f9985b3 100644 --- a/lua/kickstart/plugins/which-key.lua +++ b/lua/kickstart/plugins/which-key.lua @@ -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,