Skip to content

Commit

Permalink
fix(toggleterm/keymap): <C-\> missing direction spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Jint-lzxy committed Sep 30, 2023
1 parent e5db79e commit 6d666b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/keymap/tool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ local plug_map = {
-- Plugin: toggleterm
["t|<Esc><Esc>"] = map_cmd([[<C-\><C-n>]]):with_noremap():with_silent(), -- switch to normal mode in terminal.
["t|jk"] = map_cmd([[<C-\><C-n>]]):with_noremap():with_silent(), -- switch to normal mode in terminal.
["n|<C-\\>"] = map_cr("ToggleTerm"):with_noremap():with_silent():with_desc("terminal: Toggle horizontal"),
["n|<C-\\>"] = map_cr("ToggleTerm direction=horizontal")
:with_noremap()
:with_silent()
:with_desc("terminal: Toggle horizontal"),
["i|<C-\\>"] = map_cmd("<Esc><Cmd>ToggleTerm<CR>")
:with_noremap()
:with_silent()
Expand Down

0 comments on commit 6d666b9

Please sign in to comment.