fix toggleterm keybindings

This commit is contained in:
LordMZTE 2022-08-19 20:08:10 +02:00
parent a04f193729
commit 0d082554f6
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 1 additions and 7 deletions

View file

@ -7,12 +7,6 @@ map("t", "<Esc>", "<C-\\><C-n>", {})
map("n", "ff", "<cmd>Telescope find_files<cr>", { silent = true })
map("n", "fg", "<cmd>Telescope live_grep<cr>", { silent = true })
-- neoterm.nvim
map("n", "tt", "<cmd>NeotermToggle<cr>", { silent = true })
map("n", "tr", ":NeotermRun<space>", {})
map("n", "te", "<cmd>NeotermExit<cr>", { silent = true })
map("n", "ta", "<cmd>NeotermRerun<cr>", { silent = true })
-- Quick cursor movement
map("n", "<C-Down>", "5j", { noremap = true })
map("n", "<C-Up>", "5k", { noremap = true })

View file

@ -2,6 +2,6 @@ local tterm = require "toggleterm"
tterm.setup {
size = 64,
open_mapping = [[tt]],
open_mapping = [[<C-t>]],
direction = "vertical",
}