Skip to content

Convert code into actual text input without leaving NeoVim

License

Notifications You must be signed in to change notification settings

morphisjustfun/nvim-code2text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐷 nvim-code2text

Convert code into actual text input without leaving NeoVim

Demo GIF


Nvim-code2text is a NeoVim plugin written in Lua that lets you use a programming language output as an input for editor. Everything from http requests, files, json documents, complex loops, etc... It works by redirecting stdout to vim buffer

🎃 Caveats

  • Currently it only works for Linux and MacOS

🌐 Supported languages

  • Javascript
  • Python
  • Bash

🔌 Installation

Prerequisites

Adding the plugin

Use your preferred plugin manager

Vim-plug

Plug 'morphisjustfun/nvim-code2text'

Packer.nvim

use "morphisjustfun/nvim-code2text"

Vundle

Plugin 'morphisjustfun/nvim-code2text'

NeoBundle

NeoBundleFetch 'morphisjustfun/nvim-code2text'

🌟 Usage

Commands

  • :Code2text <language> opens vertical split to enter code
  • :Code2textGet prints output of current code
  • :Code2textAccept closes code window and inserts output into editor

🫂 Contribute

Pull requests are welcomed

📙 TO-DO

  • Add support for more languages
  • How to deal with compiled languages

🛂 License

MIT

About

Convert code into actual text input without leaving NeoVim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published