Fix keymap descriptions

This commit is contained in:
Tyler Hallada 2023-12-01 15:26:03 -05:00
parent 247c8991bd
commit f6ea82fe9d
4 changed files with 28 additions and 27 deletions

View File

@ -4,33 +4,34 @@ return {
"tpope/vim-rhubarb", "tpope/vim-rhubarb",
}, },
keys = { keys = {
{ "<leader>gx", [[<Cmd>G<CR>]], { desc = "Toggle [G]it status 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>gs", [[<Cmd>Git<CR>]], desc = "Toggle [G]it [S]tatus window" },
{ {
"<leader>gfd", "<leader>gfd",
[[<Cmd>Gdiffsplit<CR>]], [[<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>gc", [[<Cmd>Git commit<CR>]], desc = "[G]it [C]ommit" },
{ "<leader>gb", [[<Cmd>Git blame -C<CR>]], { desc = "[G]it [B]lame" } }, { "<leader>gb", [[<Cmd>Git blame -C<CR>]], desc = "[G]it [B]lame" },
{ "<leader>gp", [[<Cmd>Git push<CR>]], { desc = "[G]it [P]ush" } }, { "<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>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>gu", [[<Cmd>Git pull<CR>]], desc = "[G]it p[U]ll" },
{ {
"<leader>gh", "<leader>gh",
[[<Cmd>Git diff --cached<CR>]], [[<Cmd>Git diff --cached<CR>]],
{ desc = "[G]it diff current staged changes" }, desc = "[G]it diff current staged changes",
}, },
{ {
"<leader>go", "<leader>go",
"<cmd>GBrowse<CR>", "<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", "<leader>go",
":'<,'>GBrowse<CR>", ":'<,'>GBrowse<CR>",
mode = "v", 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", snippet_engine = "luasnip",
}, },
keys = { 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", "<leader>nc",
"<cmd>lua require('neogen').generate({ type = 'class' })<CR>", "<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 = { keys = {
[[<C-\>]], [[<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->", "<M->",
[[<Cmd>ToggleTerm direction=horizontal<CR>]], [[<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 -- tmux muscle-memory for fullscreening nvim window
-- replaced with true-zen.nvim -- replaced with true-zen.nvim
-- vim.keymap.set('n', [[<C-a>z]], [[<Cmd>ToggleTermToggleAll<CR>]]) -- vim.keymap.set('n', [[<C-a>z]], [[<Cmd>ToggleTermToggleAll<CR>]])
-- vim.keymap.set('t', [[<C-a>z]], [[<Cmd>tab split<CR>]]) -- vim.keymap.set('t', [[<C-a>z]], [[<Cmd>tab split<CR>]])
{ "<Esc>", [[<C-\><C-n>]], mode = "t", { desc = "Escape terminal mode" } }, { "<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-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-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-l>", [[<Cmd>wincmd l<CR>]], mode = "t", desc = "Move focus right one window" },
{ [[<C-\>]], [[<Cmd>ToggleTerm<CR>]] }, { [[<C-\>]], [[<Cmd>ToggleTerm<CR>]] },
{ "<F12>", [[<Cmd>ToggleTerm<CR>]] }, { "<F12>", [[<Cmd>ToggleTerm<CR>]] },
{ "<F12>", [[<Cmd>ToggleTerm<CR>]], mode = "t" }, { "<F12>", [[<Cmd>ToggleTerm<CR>]], mode = "t" },

View File

@ -2,13 +2,13 @@ return {
"Pocco81/true-zen.nvim", "Pocco81/true-zen.nvim",
cmd = { "TZNarrow", "TZFocus", "TZMinimalist", "TZAtaraxis" }, cmd = { "TZNarrow", "TZFocus", "TZMinimalist", "TZAtaraxis" },
keys = { keys = {
{ "<leader>zn", [[<Cmd>:TZNarrow<CR>]], { desc = "[Z]oom [N]arrow current line" } }, { "<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>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>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>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>za", [[<Cmd>:TZAtaraxis<CR>]], desc = "[Z]oom [A]taraxis current buffer minimalist mode" },
-- tmux memory for fullscreening nvim window -- 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>]], 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>]], mode = "t", desc = "Toggle [Z]oom current terminal buffer in new tab" },
}, },
} }