💤 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:
2024-07-09 09:26:46 -04:00
parent 84f12e6524
commit 64715b251f
4 changed files with 114 additions and 55 deletions
+23 -1
View File
@@ -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