💤 LazyGit and Gists
- Implement LazyGit and integrate with UI - Implement Gists: - Create Gist from file or selection - Find existing gists and open them for editing
This commit is contained in:
+23
-1
@@ -1,6 +1,28 @@
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- -------------------------------- KEYBINDS -----------------------------------
|
||||
-- -----------------------------------------------------------------------------
|
||||
|
||||
-- Leader Maps
|
||||
local wk = require("which-key")
|
||||
wk.register({
|
||||
["<leader>"] = {
|
||||
l = {
|
||||
name = " Lazy",
|
||||
v = { "<cmd>Lazy<cr>", " LazyVim" },
|
||||
x = { "<cmd>LazyExtras<cr>", " LazyExtras" },
|
||||
},
|
||||
g = {
|
||||
name = " Git",
|
||||
S = { "<cmd>LazyGit<cr>", " LazyGit" },
|
||||
n = {
|
||||
name = " Gists",
|
||||
c = { "<cmd>GistCreate<cr>", " Create Gist" },
|
||||
f = { "<cmd>GistList<cr>", " Find Gists" },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- Make :Q close all of the buffers
|
||||
vim.api.nvim_create_user_command("Q", function()
|
||||
vim.cmd.bdelete()
|
||||
@@ -43,4 +65,4 @@ function _G.set_terminal_keymaps()
|
||||
vim.keymap.set("t", "<C-k>", [[<Cmd>wincmd k<CR>]], opts)
|
||||
vim.keymap.set("t", "<C-l>", [[<Cmd>wincmd l<CR>]], opts)
|
||||
vim.keymap.set("t", "<C-w>", [[<C-\><C-n><C-w>]], opts)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user