mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-02-04 03:20:32 +00:00
nvim: tex visual leader
This commit is contained in:
parent
8ec80c984b
commit
46b34400a2
2 changed files with 7 additions and 7 deletions
|
|
@ -1,15 +1,15 @@
|
||||||
local bufmap = {
|
local bufmap = {
|
||||||
{ mode = "x", keys = "i", cmd = 'c\\textit{<C-r>"}', opt = { desc = "Add italic to selected text" } },
|
{ mode = "x", keys = "<leader>i", cmd = 'c\\textit{<C-r>"}', opt = { desc = "Add italic to selected text" } },
|
||||||
{ mode = "x", keys = "b", cmd = 'c\\textbf{<C-r>"}', opt = { desc = "Add bold to selected text" } },
|
{ mode = "x", keys = "<leader>b", cmd = 'c\\textbf{<C-r>"}', opt = { desc = "Add bold to selected text" } },
|
||||||
{
|
{
|
||||||
mode = "x",
|
mode = "x",
|
||||||
keys = "c",
|
keys = "<leader>c",
|
||||||
cmd = 'c\\begin{verbatim}<CR><C-r>"<CR>\\end{verbatim}',
|
cmd = 'c\\begin{verbatim}<CR><C-r>"<CR>\\end{verbatim}',
|
||||||
opt = { desc = "Add code block to selected text" },
|
opt = { desc = "Add code block to selected text" },
|
||||||
},
|
},
|
||||||
{ mode = "x", keys = "d", cmd = 'c\\sout{<C-r>"}', opt = { desc = "Add strikethrough to selected text" } },
|
{ mode = "x", keys = "<leader>d", cmd = 'c\\sout{<C-r>"}', opt = { desc = "Add strikethrough to selected text" } },
|
||||||
{ mode = "x", keys = "h", cmd = 'c\\hl{<C-r>"}', opt = { desc = "Add highlight to selected text" } },
|
{ mode = "x", keys = "<leader>h", cmd = 'c\\hl{<C-r>"}', opt = { desc = "Add highlight to selected text" } },
|
||||||
{ mode = "n", keys = "<leader>cc", cmd = "<cmd>w<CR>", opt = { desc = "Save and compile tex file" } },
|
-- { mode = "n", keys = "<leader>cc", cmd = "<cmd>w<CR>", opt = { desc = "Save and compile tex file" } },
|
||||||
}
|
}
|
||||||
|
|
||||||
local set_buf_keymaps = require("keymaps.utils").set_buf_keymaps
|
local set_buf_keymaps = require("keymaps.utils").set_buf_keymaps
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ local function get_system_theme()
|
||||||
return background
|
return background
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.cmd.colorscheme("gruvbox-material")
|
vim.cmd.colorscheme("catppuccin")
|
||||||
|
|
||||||
-- if get_system_theme() == 'dark' then
|
-- if get_system_theme() == 'dark' then
|
||||||
-- vim.o.background = 'dark'
|
-- vim.o.background = 'dark'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue