[Binds] Make latex binds neater
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
local opts = require("utils").opts
|
||||
local utils = require("utils")
|
||||
local opts = utils.opts
|
||||
|
||||
local keymap = vim.keymap
|
||||
|
||||
@@ -38,9 +39,9 @@ keymap.set("n", "Q", ":q!<CR>", opts("quit file"))
|
||||
keymap.set("n", "<leader>dd", ":t.<CR>", opts("Duplicate line"))
|
||||
|
||||
-- LaTeX mappings
|
||||
keymap.set("n", "<leader>lc", ":VimtexCompile<CR>", opts("Compile latex document")) -- Compile LaTeX file
|
||||
keymap.set("n", "<leader>lv", ":VimtexView<CR>", opts("View compiled latex pdf")) -- View compiled PDF
|
||||
keymap.set("n", "<leader>lq", ":VimtexStop<CR>", opts("Stop Compiling document")) -- Stop compilation
|
||||
keymap.set("n", "<leader>lc", utils.run_vim_cmd("VimtexCompile"), opts("Compile latex document")) -- Compile LaTeX file
|
||||
keymap.set("n", "<leader>lv", utils.run_vim_cmd("VimtexView"), opts("View compiled latex pdf")) -- View compiled PDF
|
||||
keymap.set("n", "<leader>lq", utils.run_vim_cmd("VimtexStop"), opts("Stop Compiling document")) -- Stop compilation
|
||||
|
||||
-- window navigation
|
||||
keymap.set("n", "<A-h>", "<C-w>h", opts())
|
||||
|
||||
Reference in New Issue
Block a user