Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.72 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.72 KB

kitty-repl.nvim

kitty-repl is a neovim plugin to evaluate buffer lines in a interactive interpreter using the niceties of kitty.

kittyREPLcast_lowres

DISCLAIMER This plugin was created very recently and it is not finished

Goal

The idea is to create a REPL where the user can run any bunch of lines in a nvim buffer and send them to a kitty window where a JIT console evaluates them. Since I mostly write python and C/C++ code, these languages are the very first to have support. In the future it would be very interesting to add more languages.

Installation

You can use your favourite plugin manager. For example, with packer:

packer.use {
    "marromlam/kitty-repl.nvim",
    disable = false,
    event = "BufEnter",
    config = function()
      require('kitty-repl').setup()
      nvim_set_keymap('n', '<leader>;r', ':KittyREPLRun<cr>', {})
      nvim_set_keymap('x', '<leader>;s', ':KittyREPLSend<cr>', {})
      nvim_set_keymap('n', '<leader>;s', ':KittyREPLSend<cr>', {})
      nvim_set_keymap('n', '<leader>;c', ':KittyREPLClear<cr>', {})
      nvim_set_keymap('n', '<leader>;k', ':KittyREPLKill<cr>', {})
      nvim_set_keymap('n', '<leader>;l', ':KittyREPLRunAgain<cr>', {})
      nvim_set_keymap('n', '<leader>;w', ':KittyREPLStart<cr>', {})
    end
}

Currently implemented features

  • Send buffer lines writen in python and C/C++.
  • Launch ipython and cling interpreters automatically on file extension.

Contributing

I really would appreciate help with this plugin since I use only two programming languages. This module could really benefit from the help and suggestions of other users.