Fix bad keymaps
This commit is contained in:
parent
36c66d84e4
commit
c5e5c87db6
@ -28,14 +28,14 @@ return {
|
|||||||
-- 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>]])
|
||||||
{ "t", "<Esc>", [[<C-\><C-n>]], { desc = "Escape terminal mode" } },
|
{ "<Esc>", [[<C-\><C-n>]], mode = "t", { desc = "Escape terminal mode" } },
|
||||||
{ "t", "<C-j>", [[<Cmd>wincmd h<CR>]], { desc = "Move focus down one window" } },
|
{ "<C-j>", [[<Cmd>wincmd h<CR>]], mode = "t", { desc = "Move focus down one window" } },
|
||||||
{ "t", "<C-k>", [[<Cmd>wincmd k<CR>]], { desc = "Move focus up one window" } },
|
{ "<C-k>", [[<Cmd>wincmd k<CR>]], mode = "t", { desc = "Move focus up one window" } },
|
||||||
{ "t", "<C-h>", [[<Cmd>wincmd h<CR>]], { desc = "Move focus left one window" } },
|
{ "<C-h>", [[<Cmd>wincmd h<CR>]], mode = "t", { desc = "Move focus left one window" } },
|
||||||
{ "t", "<C-l>", [[<Cmd>wincmd l<CR>]], { desc = "Move focus right one window" } },
|
{ "<C-l>", [[<Cmd>wincmd l<CR>]], mode = "t", { desc = "Move focus right one window" } },
|
||||||
{ "n", [[<C-\>]], [[<Cmd>ToggleTerm<CR>]] },
|
{ [[<C-\>]], [[<Cmd>ToggleTerm<CR>]] },
|
||||||
{ "n", "<F12>", [[<Cmd>ToggleTerm<CR>]] },
|
{ "<F12>", [[<Cmd>ToggleTerm<CR>]] },
|
||||||
{ "t", "<F12>", [[<Cmd>ToggleTerm<CR>]] },
|
{ "<F12>", [[<Cmd>ToggleTerm<CR>]], mode = "t" },
|
||||||
-- { "<leader>H", "<cmd>lua _clx_toggle()<CR>", { desc = "Toggle clx (console HackerNews) floating terminal" } },
|
-- { "<leader>H", "<cmd>lua _clx_toggle()<CR>", { desc = "Toggle clx (console HackerNews) floating terminal" } },
|
||||||
-- { "<leader>G", "<cmd>lua _gitui_toggle()<CR>", { desc = "Toggle gitui floating terminal" } },
|
-- { "<leader>G", "<cmd>lua _gitui_toggle()<CR>", { desc = "Toggle gitui floating terminal" } },
|
||||||
},
|
},
|
||||||
|
@ -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 = {
|
||||||
{ "n", "<leader>zn", [[<Cmd>:TZNarrow<CR>]], { desc = "[Z]oom [N]arrow current line" } },
|
{ "<leader>zn", [[<Cmd>:TZNarrow<CR>]], { desc = "[Z]oom [N]arrow current line" } },
|
||||||
{ "v", "<leader>zn", [[<Cmd>:'<,'>TZNarrow<CR>]], { desc = "[Z]oom [N]arrow selected lines" } },
|
{ "<leader>zn", [[<Cmd>:'<,'>TZNarrow<CR>]], mode = "v", { desc = "[Z]oom [N]arrow selected lines" } },
|
||||||
{ "n", "<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" } },
|
||||||
{ "n", "<leader>zm", [[<Cmd>:TZMinimalist<CR>]], { desc = "[Z] Toggle minimalist nvim UI mode" } },
|
{ "<leader>zm", [[<Cmd>:TZMinimalist<CR>]], { desc = "[Z] Toggle minimalist nvim UI mode" } },
|
||||||
{ "n", "<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
|
||||||
{ "n", [[<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" } },
|
||||||
{ "t", [[<C-a>z]], [[<Cmd>:TZFocus<CR>]], { 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" } },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user