Skip to content

leslykinzel/ecdysis.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Ecdysis

This is a tool I made to explore the inner workings of the python interpreter.

What does this do?

This plugin pipes the contents of your active buffer into dis.py. It prints the resulting CPython bytecode in a scratch buffer.

fizzbuzz

Calling the built in setup() function creates the auto-command :EcdysisDisassembleCurrentBuffer.

You will need Python 3.5 at least. Behaviour will differ based on the exact version used.

Lazy.nvim

{
  "leslykinzel/ecdysis.nvim",
  config = function()
    require("ecdysis").setup()
  end,
}

Packer.nvim

use {
  'leslykinzel/ecdysis.nvim',
  config = function()
    require('ecdysis').setup()
  end
}

Usage

Open a python file and run this:

:EcdysisDisassembleCurrentBuffer

If your python code contains egregious syntax errors (e.g. using undeclared functions), not only will the disassembly fail, but the stack trace will be printed in the background of the terminal window. This is only visible if you use a transparent background in Neovim.

About

CPython disassembler for Neovim.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages