add new toggleterm interactions

This commit is contained in:
Markus 2022-10-13 23:53:23 +02:00
parent 9d5f4047ca
commit 9555ab88a1
2 changed files with 9 additions and 1 deletions

View File

@ -18,6 +18,12 @@ end
nmap("<SPACE>","<Nop>")
nmap("<C-f>",":ToggleTerm direction=float<cr>")
imap("<C-f>",":ToggleTerm direction=float<cr>")
nmap("<C-l>",":ToggleTerm direction=horizontal size=10<cr>")
imap("<C-l>",":ToggleTerm direction=horizontal size=10<cr>")
xmap("p",'\"_dP')
nmap("<leader>fg", "<cmd>lua require('telescope.builtin').live_grep()<cr>")
nmap("<leader>fb", "<cmd>lua require('telescope.builtin').buffers()<cr>")

View File

@ -1,7 +1,7 @@
require"toggleterm".setup{
open_mapping = [[<c-y>]],
hide_numbers = true,
direction = 'float',
--direction = 'float',
float_opts = {
border = 'curved'
},
@ -9,3 +9,5 @@ require"toggleterm".setup{
enabled = false
}
}