From 1adf2cd3494e17ea4bd041d6b3d50347e0fc2ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Sun, 2 Oct 2022 18:15:54 +0200 Subject: [PATCH] Add vimtex mappings --- init.lua | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 0dee8d4..b4070ea 100644 --- a/init.lua +++ b/init.lua @@ -212,6 +212,30 @@ local config = { ["ms"] = { "MarkdownPreviewStop", desc = "Markdown preview stop" }, ["mt"] = { "MarkdownPreviewToggle", desc = "Markdown preview toggle" }, + -- Vimtex mappings + ["xi"] = { "VimtexInfo", desc = "Info" }, + ["xI"] = { "VimtexInfoFull", desc = "Full info" }, + ["xt"] = { "VimtexTocOpen", desc = "Open table of contents" }, + ["xT"] = { "VimtexTocToggle", desc = "Toggle table of contents" }, + ["xq"] = { "VimtexLog", desc = "Log" }, + ["xv"] = { "VimtexView", desc = "View" }, + ["xr"] = { "VimtexReverseSearch", desc = "Reverse search" }, + ["xl"] = { "VimtexCompile", desc = "Compile (toggle)" }, + ["xL"] = { "VimtexCompileSelected", desc = "Compile selected" }, + ["xk"] = { "VimtexStop", desc = "Stop compilation" }, + ["xK"] = { "VimtexStopAll", desc = "Stop all compilations" }, + ["xe"] = { "VimtexErrors", desc = "Open quickfix window" }, + ["xo"] = { "VimtexCompileOutput", desc = "Open compiler output" }, + ["xg"] = { "VimtexStatus", desc = "Compilation status" }, + ["xG"] = { "VimtexStatusAll", desc = "Show all compilations' status" }, + ["xc"] = { "VimtexClean", desc = "Clean auxiliary files" }, + ["xC"] = { "VimtexClean!", desc = "As Clean, but also remove output files" }, + ["xm"] = { "VimtexImapsList", desc = "Show list of mappings created by vimtex-imaps" }, + ["xx"] = { "VimtexReload", desc = "Reload vimtex" }, + ["xX"] = { "VimtexReloadState", desc = "Reload the state for the current buffer" }, + ["xs"] = { "VimtexToggleMain", desc = "Set current file as 'current project'" }, + ["xa"] = { "VimtexContextMenu", desc = "Show context menu" }, + -- quick save -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command }, @@ -261,7 +285,7 @@ local config = { }, -- All other entries override the require("").setup({...}) call for default plugins ["null-ls"] = function(config) -- overrides `require("null-ls").setup(config)` - -- config variable is the default configuration table for the setup functino call + -- config variable is the default configuration table for the setup function call -- local null_ls = require "null-ls" -- Check supported formatters and linters