Skip to content

A Neovim plugin that open REPL in a split window according to the current buffer filetype

License

Notifications You must be signed in to change notification settings

ingram1107/aedile.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Plug 'ingram1107/aedile.nvim'

packer

use 'ingram1107/aedile.nvim'

Usage

-- 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>')

Check out these awesome plugins too

Todo

  • documentation
  • toggle REPL instead of open and close it
  • create split window without moving the cursor
  • able to specify the window split method

About

A Neovim plugin that open REPL in a split window according to the current buffer filetype

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages