Fix keymap descriptions

This commit is contained in:
Tyler Hallada 2023-11-27 15:47:40 -05:00
parent f839e2ae20
commit c5c69d5012
4 changed files with 28 additions and 27 deletions

View File

@ -4,33 +4,34 @@ return {
"tpope/vim-rhubarb",
},
keys = {
{ "<leader>gx", [[<Cmd>G<CR>]], { desc = "Toggle [G]it status window" } },
{ "<leader>gs", [[<Cmd>Git<CR>]], { desc = "Toggle [G]it [S]tatus window" } },
{ "<leader>gx", [[<Cmd>G<CR>]], desc = "Toggle [G]it status window" },
{ "<leader>gs", [[<Cmd>Git<CR>]], desc = "Toggle [G]it [S]tatus window" },
{
"<leader>gfd",
[[<Cmd>Gdiffsplit<CR>]],
{ desc = "[G]it [D]iff current file against index with [F]ugitive" },
desc = "[G]it [D]iff current file against index with [F]ugitive",
},
{ "<leader>gc", [[<Cmd>Git commit<CR>]], { desc = "[G]it [C]ommit" } },
{ "<leader>gb", [[<Cmd>Git blame -C<CR>]], { desc = "[G]it [B]lame" } },
{ "<leader>gp", [[<Cmd>Git push<CR>]], { desc = "[G]it [P]ush" } },
{ "<leader>gf", [[<Cmd>Git push --force<CR>]], { desc = "[G]it [F]orce push" } },
{ "<leader>gu", [[<Cmd>Git pull<CR>]], { desc = "[G]it p[U]ll" } },
{ "<leader>gc", [[<Cmd>Git commit<CR>]], desc = "[G]it [C]ommit" },
{ "<leader>gb", [[<Cmd>Git blame -C<CR>]], desc = "[G]it [B]lame" },
{ "<leader>gp", [[<Cmd>Git push<CR>]], desc = "[G]it [P]ush" },
{ "<leader>gf", [[<Cmd>Git push --force<CR>]], desc = "[G]it [F]orce push" },
{ "<leader>gu", [[<Cmd>Git pull<CR>]], desc = "[G]it p[U]ll" },
{
"<leader>gh",
[[<Cmd>Git diff --cached<CR>]],
{ desc = "[G]it diff current staged changes" },
desc = "[G]it diff current staged changes",
},
{
"<leader>go",
"<cmd>GBrowse<CR>",
{ desc = "[B]rowse [G]it URL for fugitive object under cursor" },
desc = "[B]rowse [G]it URL for fugitive object under cursor",
},
{
"<leader>go",
":'<,'>GBrowse<CR>",
mode = "v",
{ desc = "[B]rowse [G]it URL for selected lines", silent = true },
desc = "[B]rowse [G]it URL for selected lines",
silent = true,
},
},
}

View File

@ -8,11 +8,11 @@ return {
snippet_engine = "luasnip",
},
keys = {
{ "<leader>nf", "<cmd>lua require('neogen').generate()<CR>", { desc = "Generate Neogen function annotation" } },
{ "<leader>nf", "<cmd>lua require('neogen').generate()<CR>", desc = "Generate Neogen function annotation" },
{
"<leader>nc",
"<cmd>lua require('neogen').generate({ type = 'class' })<CR>",
{ desc = "Generate Neogen class annotation" },
desc = "Generate Neogen class annotation",
},
},
}

View File

@ -18,21 +18,21 @@ return {
},
keys = {
[[<C-\>]],
{ "<M-=>", [[<Cmd>ToggleTerm direction=float<CR>]], { desc = "Toggle terminal in floating window" } },
{ "<M-=>", [[<Cmd>ToggleTerm direction=float<CR>]], desc = "Toggle terminal in floating window" },
{
"<M->",
[[<Cmd>ToggleTerm direction=horizontal<CR>]],
{ desc = "Toggle terminal in horizontal bottom window" },
desc = "Toggle terminal in horizontal bottom window",
},
-- tmux muscle-memory for fullscreening nvim window
-- replaced with true-zen.nvim
-- vim.keymap.set('n', [[<C-a>z]], [[<Cmd>ToggleTermToggleAll<CR>]])
-- vim.keymap.set('t', [[<C-a>z]], [[<Cmd>tab split<CR>]])
{ "<Esc>", [[<C-\><C-n>]], mode = "t", { desc = "Escape terminal mode" } },
{ "<C-j>", [[<Cmd>wincmd h<CR>]], mode = "t", { desc = "Move focus down one window" } },
{ "<C-k>", [[<Cmd>wincmd k<CR>]], mode = "t", { desc = "Move focus up one window" } },
{ "<C-h>", [[<Cmd>wincmd h<CR>]], mode = "t", { desc = "Move focus left one window" } },
{ "<C-l>", [[<Cmd>wincmd l<CR>]], mode = "t", { desc = "Move focus right one window" } },
{ "<Esc>", [[<C-\><C-n>]], mode = "t", desc = "Escape terminal mode" },
{ "<C-j>", [[<Cmd>wincmd h<CR>]], mode = "t", desc = "Move focus down one window" },
{ "<C-h>", [[<Cmd>wincmd h<CR>]], mode = "t", desc = "Move focus left one window" },
{ "<C-k>", [[<Cmd>wincmd k<CR>]], mode = "t", desc = "Move focus up one window" },
{ "<C-l>", [[<Cmd>wincmd l<CR>]], mode = "t", desc = "Move focus right one window" },
{ [[<C-\>]], [[<Cmd>ToggleTerm<CR>]] },
{ "<F12>", [[<Cmd>ToggleTerm<CR>]] },
{ "<F12>", [[<Cmd>ToggleTerm<CR>]], mode = "t" },

View File

@ -2,13 +2,13 @@ return {
"Pocco81/true-zen.nvim",
cmd = { "TZNarrow", "TZFocus", "TZMinimalist", "TZAtaraxis" },
keys = {
{ "<leader>zn", [[<Cmd>:TZNarrow<CR>]], { desc = "[Z]oom [N]arrow current line" } },
{ "<leader>zn", [[<Cmd>:'<,'>TZNarrow<CR>]], mode = "v", { desc = "[Z]oom [N]arrow selected lines" } },
{ "<leader>zf", [[<Cmd>:TZFocus<CR>]], { desc = "[Z]oom [N]arrow current buffer in new tab" } },
{ "<leader>zm", [[<Cmd>:TZMinimalist<CR>]], { desc = "[Z] Toggle minimalist nvim UI mode" } },
{ "<leader>za", [[<Cmd>:TZAtaraxis<CR>]], { desc = "[Z]oom [A]taraxis current buffer minimalist mode" } },
{ "<leader>zn", [[<Cmd>:TZNarrow<CR>]], desc = "[Z]oom [N]arrow current line" },
{ "<leader>zn", [[<Cmd>:'<,'>TZNarrow<CR>]], mode = "v", desc = "[Z]oom [N]arrow selected lines" },
{ "<leader>zf", [[<Cmd>:TZFocus<CR>]], desc = "[Z]oom [N]arrow current buffer in new tab" },
{ "<leader>zm", [[<Cmd>:TZMinimalist<CR>]], desc = "[Z] Toggle minimalist nvim UI mode" },
{ "<leader>za", [[<Cmd>:TZAtaraxis<CR>]], desc = "[Z]oom [A]taraxis current buffer minimalist mode" },
-- tmux memory for fullscreening nvim window
{ [[<C-a>z]], [[<Cmd>:TZFocus<CR>]], { desc = "Toggle [Z]oom current buffer in new tab" } },
{ [[<C-a>z]], [[<Cmd>:TZFocus<CR>]], mode = "t", { desc = "Toggle [Z]oom current terminal buffer in new tab" } },
{ [[<C-a>z]], [[<Cmd>:TZFocus<CR>]], desc = "Toggle [Z]oom current buffer in new tab" },
{ [[<C-a>z]], [[<Cmd>:TZFocus<CR>]], mode = "t", desc = "Toggle [Z]oom current terminal buffer in new tab" },
},
}