diff options
-rw-r--r-- | README.md | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -114,10 +114,12 @@ local ft_cmds = { ... <your commands here> } +local toggle_modes = {'n', 't'} local mappings = { - { 'n', '<C-l>', function () terminal.send(ft_cmds[vim.bo.filetype]) end }, - { 'n', '<Leader>s', function () terminal.toggle('horizontal') end }, - { 'n', '<Leader>v', function () terminal.toggle('vertical') end }, + { 'n', '<C-l>', function () require("nvterm.terminal").send(ft_cmds[vim.bo.filetype]) end }, + { toggle_modes, '<A-h>', function () require("nvterm.terminal").toggle('horizontal') end }, + { toggle_modes, '<A-v>', function () require("nvterm.terminal").toggle('vertical') end }, + { toggle_modes, '<A-i>', function () require("nvterm.terminal").toggle('float') end }, } local opts = { noremap = true, silent = true } for _, mapping in ipairs(mappings) do |