From b75d86cffa6bdd1e992692d4fad03cd4c608cafd Mon Sep 17 00:00:00 2001 From: Jeff Lance Date: Fri, 18 Aug 2023 09:50:47 +0200 Subject: [PATCH] change some vimtex shortcut --- conf.d/lvim/ftplugin/tex.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/conf.d/lvim/ftplugin/tex.lua b/conf.d/lvim/ftplugin/tex.lua index 169182f..3974da8 100644 --- a/conf.d/lvim/ftplugin/tex.lua +++ b/conf.d/lvim/ftplugin/tex.lua @@ -34,23 +34,23 @@ whk.register { whk.register { [""] = { -- to set a completly new using only the localleader key name = "LaTeX", - c = { + c = { "VimtexCompileSS", "Single-shot compile project" }, + C = { name = "Compile", - b = { "VimtexCompileSS", "Single-shot compile project" }, - e = { "VimtexStop", "Stop compile" }, - s = { "VimtexCompileSelected", "Compile Selected" }, + s = { "VimtexStop", "Stop compile" }, + c = { "VimtexCompileSelected", "Compile Selected" }, }, d = { "VimtexDocPackage", "Open Doc for package" }, e = { "VimtexErrors", "Look at the errors" }, m = { "VimtexToggleMain", "Toggle Main" }, o = { "VimtexView", "View pdf" }, s = { "VimtexStatus", "Look at the status" }, - t = { + T = { name = "TOC", o = { "VimtexTocOpen", "Open TOC" }, t = { "VimtexTocToggle", "Toggle TOC" }, }, - v = { + V = { name = "VimTeX", c = { "edit /home/jeff/.config/lvim/ftplugin/tex.lua", "Edit configuration" }, s = { "edit /home/jeff/.config/lvim/luasnippets/tex.lua", "Edit snippets" }, @@ -72,3 +72,5 @@ local formatters = require("lvim.lsp.null-ls.formatters") formatters.setup({ { command = "latexindent", filetypes = { "tex" } }, }) + +