update
This commit is contained in:
parent
2e6b46179b
commit
25595e8970
5 changed files with 27 additions and 37 deletions
21
lua/custom/plugins/nvim-repl.lua
Normal file
21
lua/custom/plugins/nvim-repl.lua
Normal 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' },
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue