From 9555ab88a1ce0ee5e8ebf216b522a5c5e2e63253 Mon Sep 17 00:00:00 2001 From: Markus Date: Thu, 13 Oct 2022 23:53:23 +0200 Subject: [PATCH] add new toggleterm interactions --- nvim/lua/keymap.lua | 6 ++++++ nvim/lua/toggleterm_config.lua | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nvim/lua/keymap.lua b/nvim/lua/keymap.lua index a3ac307..85ef1a7 100644 --- a/nvim/lua/keymap.lua +++ b/nvim/lua/keymap.lua @@ -18,6 +18,12 @@ end nmap("","") +nmap("",":ToggleTerm direction=float") +imap("",":ToggleTerm direction=float") + +nmap("",":ToggleTerm direction=horizontal size=10") +imap("",":ToggleTerm direction=horizontal size=10") + xmap("p",'\"_dP') nmap("fg", "lua require('telescope.builtin').live_grep()") nmap("fb", "lua require('telescope.builtin').buffers()") diff --git a/nvim/lua/toggleterm_config.lua b/nvim/lua/toggleterm_config.lua index c61ade2..56000a5 100644 --- a/nvim/lua/toggleterm_config.lua +++ b/nvim/lua/toggleterm_config.lua @@ -1,7 +1,7 @@ require"toggleterm".setup{ open_mapping = [[]], hide_numbers = true, - direction = 'float', + --direction = 'float', float_opts = { border = 'curved' }, @@ -9,3 +9,5 @@ require"toggleterm".setup{ enabled = false } } + +