https://github.com/ingram1107/aedile.nvim
A Neovim plugin that open REPL in a split window according to the current buffer filetype
https://github.com/ingram1107/aedile.nvim
lua neovim nvim nvim-plugin repl
Last synced: 10 months ago
JSON representation
A Neovim plugin that open REPL in a split window according to the current buffer filetype
- Host: GitHub
- URL: https://github.com/ingram1107/aedile.nvim
- Owner: ingram1107
- License: gpl-3.0
- Created: 2021-03-11T13:59:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-18T23:27:43.000Z (almost 3 years ago)
- Last Synced: 2025-03-26T09:28:59.140Z (about 1 year ago)
- Topics: lua, neovim, nvim, nvim-plugin, repl
- Language: Lua
- Homepage:
- Size: 42 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aedile.nvim
A Neovim plugin that open REPL in a split window according to the current buffer filetype
# Requirement
Neovim 0.5+
# Installation
Vim-plug
```viml
Plug 'ingram1107/aedile.nvim'
```
packer
```lua
use 'ingram1107/aedile.nvim'
```
# Usage
```lua
-- 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 = '',
scrolldown_map = '',
}
-- KEYMAP
vim.api.nvim_set_keymap('n', 'rr', 'lua require("aedile").toggle_repl()')
vim.api.nvim_set_keymap('n', 'rc', 'lua require("aedile").terminate_repl()')
```
# Check out these awesome plugins too
- [vim-slime](https://github.com/jpalardy/vim-slime)
- [vim-sexp](https://github.com/guns/vim-sexp)
# Todo
- [X] documentation
- [X] toggle REPL instead of open and close it
- [ ] create split window without moving the cursor
- [X] able to specify the window split method