Files
nvim-modular/lua/custom/keymaps/terminal.lua
2025-08-29 23:21:21 +02:00

27 lines
898 B
Lua

-- 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' },
{ '<leader>Ti', th.new_terminal_ipython, desc = 'new [i]python terminal', silent = true, noremap = true },
{ '<leader>Tj', th.new_terminal_julia, desc = 'new [j]ulia terminal', silent = true, noremap = true },
{ '<leader>Ts', th.new_terminal_shell, desc = 'new terminal with [s]hell', silent = true, noremap = true },
{ '<leader>Tp', th.new_terminal_python, desc = 'new [p]ython terminal', silent = true, noremap = true },
{ '<leader>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