Code Monkey home page Code Monkey logo

comment-repl.nvim's Introduction

Comment-REPL.nvim

GitHub Workflow Status Lua

A neovim plugin that allows you to run code in a REPL without ever leaving your buffer. Output from the REPL is printed as a comment below the executed code.

Can be used as an extremely simplified Jupyter Notebook experience.

How does it work

:CommentREPLExecute will run the code cell at your cursor and print the output as a comment. That's it!

Screenshot

Installation

Using lazy.nvim:

{
  'atinylittleshell/comment-repl.nvim',
  opts = {},
}

Configuration

See config.lua for config schema and default values.

Python is the only language supported by default, but you can add support for other REPLs through configuration.

Commands

:CommentREPLExecute - Run the code cell at the cursor and print the output as a comment.

:CommentREPLLog - View logs from Comment-REPL.nvim.

-- By default the plugin will not enable any key bindings.
-- Your can define your own keybind behavior like below.
vim.keymap.set('n', '<leader>ce', '<cmd>CommentREPLExecute<CR>')
vim.keymap.set('n', '<leader>cl', '<cmd>CommentREPLLog<CR>')

comment-repl.nvim's People

Contributors

atinylittleshell avatar github-actions[bot] avatar

Stargazers

Juan Tascon avatar Moonwalker avatar Stéphane P avatar Fredrik Molén avatar Alex Steffen avatar Mathias Schjølberg Augdal avatar Grudanov Nikolay avatar João avatar Fernando Vega Catalán avatar Patryk Kielar avatar  avatar James Lingford avatar chan avatar  avatar  avatar Paulo Fernandes avatar nick avatar hebe ⚸ dite avatar Yuta Katayama avatar

Watchers

 avatar nick avatar

Forkers

hesiod-au

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.