An open API service indexing awesome lists of open source software.

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

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