up
This commit is contained in:
@@ -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' },
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user