feat: enable vgit
This commit is contained in:
parent
82417d4c39
commit
4cca98941e
2 changed files with 85 additions and 83 deletions
|
|
@ -9,6 +9,8 @@ local keymap = vim.api.nvim_set_keymap
|
||||||
|
|
||||||
keymap("n", "<M-CR>", ":CodeActionMenu<CR>", opts)
|
keymap("n", "<M-CR>", ":CodeActionMenu<CR>", opts)
|
||||||
keymap("n", "<C-f>", "<cmd>TroubleToggle<CR>", term_opts)
|
keymap("n", "<C-f>", "<cmd>TroubleToggle<CR>", term_opts)
|
||||||
|
keymap("n", "<C-g>", ':lua require("vgit").buffer_hunk_preview()<CR>', opts)
|
||||||
|
--keymap("n", "<C-b>", ':lua require("vgit").buffer_stage()<CR>', opts)
|
||||||
keymap("n", "<F5>", ':lua require("dap").toggle_breakpoint()<CR>', opts)
|
keymap("n", "<F5>", ':lua require("dap").toggle_breakpoint()<CR>', opts)
|
||||||
keymap("n", "<F6>", ':lua require("dap").step_over()<CR>', opts)
|
keymap("n", "<F6>", ':lua require("dap").step_over()<CR>', opts)
|
||||||
keymap("n", "<F7>", ':lua require("dap").step_into()<CR>', opts)
|
keymap("n", "<F7>", ':lua require("dap").step_into()<CR>', opts)
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,7 @@ local tabularSnippet = s(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
table.insert(snippets, tabularSnippet)
|
||||||
|
|
||||||
local textcolorSnippet = s(
|
local textcolorSnippet = s(
|
||||||
"tx-",
|
"tx-",
|
||||||
|
|
@ -114,7 +115,7 @@ local textcolorSnippet = s(
|
||||||
]],
|
]],
|
||||||
{
|
{
|
||||||
i(1, "color"),
|
i(1, "color"),
|
||||||
i(2, "text...")
|
i(2, "text..."),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
@ -165,7 +166,7 @@ local graphicSnippet = s(
|
||||||
table.insert(snippets, graphicSnippet)
|
table.insert(snippets, graphicSnippet)
|
||||||
|
|
||||||
local lstSnippet = s(
|
local lstSnippet = s(
|
||||||
"lst-",
|
"code-",
|
||||||
fmt(
|
fmt(
|
||||||
[[
|
[[
|
||||||
\begin{{lstlisting}}
|
\begin{{lstlisting}}
|
||||||
|
|
@ -179,6 +180,5 @@ local lstSnippet = s(
|
||||||
)
|
)
|
||||||
table.insert(snippets, lstSnippet)
|
table.insert(snippets, lstSnippet)
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------- snippets end
|
------------------------------------------------- snippets end
|
||||||
return snippets, autosnippets
|
return snippets, autosnippets
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue