up
This commit is contained in:
@@ -14,18 +14,10 @@ if not status_ok then
|
|||||||
return
|
return
|
||||||
end
|
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
|
vim.g.maplocalleader = ' ' -- we define a leader available only from tex files
|
||||||
|
|
||||||
whk.add {
|
whk.add {
|
||||||
|
{ '<localleader>l', hidden = true },
|
||||||
{ '<localleader>L', '', group = '[L]aTeX' },
|
{ '<localleader>L', '', group = '[L]aTeX' },
|
||||||
{ '<localleader>Lc', '<CMD>VimtexCompileSS<CR>', desc = 'Single-shot compile project' },
|
{ '<localleader>Lc', '<CMD>VimtexCompileSS<CR>', desc = 'Single-shot compile project' },
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ return {
|
|||||||
lazy = false, -- lazy-loading will disable inverse search
|
lazy = false, -- lazy-loading will disable inverse search
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.vimtex_mappings_disable = { ['n'] = { 'K' } } -- disable `K` as it conflicts with LSP hover
|
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'
|
vim.g.vimtex_quickfix_method = vim.fn.executable 'pplatex' == 1 and 'pplatex' or 'latexlog'
|
||||||
end,
|
end,
|
||||||
-- keys = {
|
-- keys = {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ return {
|
|||||||
'folke/which-key.nvim',
|
'folke/which-key.nvim',
|
||||||
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
||||||
opts = {
|
opts = {
|
||||||
|
preset = 'helix',
|
||||||
-- delay between pressing a key and opening which-key (milliseconds)
|
-- delay between pressing a key and opening which-key (milliseconds)
|
||||||
-- this setting is independent of vim.o.timeoutlen
|
-- this setting is independent of vim.o.timeoutlen
|
||||||
delay = 0,
|
delay = 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user