This commit is contained in:
Julien Raynal 2024-12-11 11:18:31 +01:00
parent 2e6b46179b
commit 25595e8970
5 changed files with 27 additions and 37 deletions

View file

@ -0,0 +1,21 @@
return {
'pappasam/nvim-repl',
lazy = false,
init = function()
vim.g['repl_filetype_commands'] = {
bash = 'bash',
javascript = 'node',
haskell = 'ghci',
python = 'ipython --no-autoindent',
r = 'R',
sh = 'sh',
vim = 'nvim --clean -ERM',
zsh = 'zsh',
}
end,
keys = {
{ '<Leader>sc', '<Plug>(ReplSendCell)', mode = 'n', desc = 'Send Repl Cell' },
{ '<Leader>sl', '<Plug>(ReplSendLine)', mode = 'n', desc = 'Send Repl Line' },
{ '<Leader>sr', '<Plug>(ReplSendVisual)', mode = 'v', desc = 'Send Repl Visual Selection' },
},
}