A Neovim plugin that open REPL in a split window according to the current buffer filetype
Neovim 0.5+
Vim-plug
Plug 'ingram1107/aedile.nvim'
packer
use 'ingram1107/aedile.nvim'
-- CONFIGURATION
require('aedile').setup {
-- assign repl to a filetype
repl = {
-- filetype = repl
'lua' = 'luajit',
'python' = 'ipython',
},
-- use 'vertical' split
split_method = 'vertical',
-- mapping for repl buf
scrollup_map = '<c-[>',
scrolldown_map = '<c-]>',
}
-- KEYMAP
vim.api.nvim_set_keymap('n', '<leader>rr', '<cmd>lua require("aedile").toggle_repl()<cr>')
vim.api.nvim_set_keymap('n', '<leader>rc', '<cmd>lua require("aedile").terminate_repl()<cr>')
- documentation
- toggle REPL instead of open and close it
- create split window without moving the cursor
- able to specify the window split method