update vimtex shortcuts
This commit is contained in:
parent
75b59fd36e
commit
8dfd7f7dd5
@ -18,42 +18,44 @@ end
|
|||||||
|
|
||||||
-- Shortcuts
|
-- Shortcuts
|
||||||
--
|
--
|
||||||
-- vim.g.maplocalleader = " "
|
-- 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.register {
|
whk.register {
|
||||||
["<leader>L"] = {
|
["<localleader>l"] = {} -- empties the default VimTeX menu mapping
|
||||||
name = "LSP, Lunar, LaTeX", -- we edit the title of the L shortcut
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
whk.register {
|
whk.register {
|
||||||
["<leader>Lx"] = {
|
["<localleader>"] = { -- to set a completly new using only the localleader key
|
||||||
name = "LaTeX",
|
name = "LaTeX",
|
||||||
c = { "<cmd>VimtexCompileSS<CR>", "Single-shot compile project" },
|
c = {
|
||||||
C = { "<cmd>VimtexCompileSelected<CR>", "Compile Selected" },
|
name = "Compile",
|
||||||
D = { "<cmd>VimtexDocPackage<CR>", "Open Doc for package" },
|
b = { "<cmd>VimtexCompileSS<CR>", "Single-shot compile project" },
|
||||||
e = { "<CMD>edit /home/jeff/.config/lvim/luasnippets/tex.lua<CR>", "Edit snippets" },
|
e = { "<cmd>VimtexStop<CR>", "Stop compile" },
|
||||||
E = { "<cmd>VimtexErrors<CR>", "Look at the errors" },
|
s = { "<cmd>VimtexCompileSelected<CR>", "Compile Selected" },
|
||||||
I = { "<cmd>VimtexInfo<CR>", "Vimtex Info" },
|
|
||||||
K = {
|
|
||||||
name = "Clean",
|
|
||||||
p = { "<cmd>VimtexClean<CR>", "Clean Project" },
|
|
||||||
c = { "<cmd>VimtexClean<CR>", "Clean Cache" },
|
|
||||||
},
|
},
|
||||||
|
d = { "<cmd>VimtexDocPackage<CR>", "Open Doc for package" },
|
||||||
|
e = { "<cmd>VimtexErrors<CR>", "Look at the errors" },
|
||||||
m = { "<cmd>VimtexToggleMain<CR>", "Toggle Main" },
|
m = { "<cmd>VimtexToggleMain<CR>", "Toggle Main" },
|
||||||
R = {
|
o = { "<cmd>VimtexView<CR>", "View pdf" },
|
||||||
name = "Reload",
|
s = { "<cmd>VimtexStatus<CR>", "Look at the status" },
|
||||||
r = { "<cmd>VimtexReload<CR>", "Reload" },
|
t = {
|
||||||
s = { "<cmd>VimtexReloadState<CR>", "Reload State" },
|
|
||||||
},
|
|
||||||
s = { "<cmd>VimtexStop<CR>", "Stop compile" },
|
|
||||||
S = { "<cmd>VimtexStatus<CR>", "Look at the status" },
|
|
||||||
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 = { "<cmd>VimtexView<CR>", "View pdf" },
|
v = {
|
||||||
|
name = "VimTeX",
|
||||||
|
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" },
|
||||||
|
i = { "<cmd>VimtexInfo<CR>", "Vimtex Info" },
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user