change some vimtex shortcut

This commit is contained in:
Jeff Lance 2023-08-18 09:50:47 +02:00
parent 8dfd7f7dd5
commit b75d86cffa

View File

@ -34,23 +34,23 @@ whk.register {
whk.register { whk.register {
["<localleader>"] = { -- to set a completly new using only the localleader key ["<localleader>"] = { -- to set a completly new using only the localleader key
name = "LaTeX", name = "LaTeX",
c = { c = { "<cmd>VimtexCompileSS<CR>", "Single-shot compile project" },
C = {
name = "Compile", name = "Compile",
b = { "<cmd>VimtexCompileSS<CR>", "Single-shot compile project" }, s = { "<cmd>VimtexStop<CR>", "Stop compile" },
e = { "<cmd>VimtexStop<CR>", "Stop compile" }, c = { "<cmd>VimtexCompileSelected<CR>", "Compile Selected" },
s = { "<cmd>VimtexCompileSelected<CR>", "Compile Selected" },
}, },
d = { "<cmd>VimtexDocPackage<CR>", "Open Doc for package" }, d = { "<cmd>VimtexDocPackage<CR>", "Open Doc for package" },
e = { "<cmd>VimtexErrors<CR>", "Look at the errors" }, e = { "<cmd>VimtexErrors<CR>", "Look at the errors" },
m = { "<cmd>VimtexToggleMain<CR>", "Toggle Main" }, m = { "<cmd>VimtexToggleMain<CR>", "Toggle Main" },
o = { "<cmd>VimtexView<CR>", "View pdf" }, o = { "<cmd>VimtexView<CR>", "View pdf" },
s = { "<cmd>VimtexStatus<CR>", "Look at the status" }, s = { "<cmd>VimtexStatus<CR>", "Look at the status" },
t = { T = {
name = "TOC", name = "TOC",
o = { "<cmd>VimtexTocOpen<CR>", "Open TOC" }, o = { "<cmd>VimtexTocOpen<CR>", "Open TOC" },
t = { "<cmd>VimtexTocToggle<CR>", "Toggle TOC" }, t = { "<cmd>VimtexTocToggle<CR>", "Toggle TOC" },
}, },
v = { V = {
name = "VimTeX", name = "VimTeX",
c = { "<CMD>edit /home/jeff/.config/lvim/ftplugin/tex.lua<CR>", "Edit configuration" }, c = { "<CMD>edit /home/jeff/.config/lvim/ftplugin/tex.lua<CR>", "Edit configuration" },
s = { "<CMD>edit /home/jeff/.config/lvim/luasnippets/tex.lua<CR>", "Edit snippets" }, s = { "<CMD>edit /home/jeff/.config/lvim/luasnippets/tex.lua<CR>", "Edit snippets" },
@ -72,3 +72,5 @@ local formatters = require("lvim.lsp.null-ls.formatters")
formatters.setup({ formatters.setup({
{ command = "latexindent", filetypes = { "tex" } }, { command = "latexindent", filetypes = { "tex" } },
}) })