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 } } + +