-- terminal mappings -- local status_wk, wk = pcall(require, 'which-key') if not status_wk then return end local status_th, th = pcall(require, 'custom.plugins.term-helper') if not status_th then return end wk.add { { mode = { 'n', 'v', 'i' }, { 'Ti', th.new_terminal_ipython, desc = 'new [i]python terminal', silent = true, noremap = true }, { 'Tj', th.new_terminal_julia, desc = 'new [j]ulia terminal', silent = true, noremap = true }, { 'Ts', th.new_terminal_shell, desc = 'new terminal with [s]hell', silent = true, noremap = true }, { 'Tp', th.new_terminal_python, desc = 'new [p]ython terminal', silent = true, noremap = true }, { 'TR', th.new_terminal_r, desc = 'new [R] terminal', silent = true, noremap = true }, }, } -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et