Skip to content

alienman5k/jdecomp.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

jdecomp.nvim

Neovim Plugin to decompile java classes. This plugin supports the following 3 providers:

  1. cfr
  2. procyon
  3. fernflower

The decompilers are not distributed by this plugin and must be downloaded separately.

What it does?

Allows to decompile single java classes and classes inside jar, war, ear, etc files. Once the file is opened in the buffer the plugin will look at the decompiler configured by the user (cfr by default) and replace the class content in the buffer with the decompiled version with syntax highlighting (but not syntax on, to prevent a Language Server from running)

Configuration

Lazy

{
  'alienman5k/jdecomp.nvim',
  opts = {
    decompiler = 'fernflower', -- cfr, procyon, fernflower
    provider = {
      cfr = {
        -- bin = 'cfr'
        jar = os.getenv('HOME') .. '/Software/cfr-0.152.jar'
      },
      procyon = {
        jar = os.getenv('HOME') .. '/Software/procyon-decompiler-0.6.0.jar'
      },
      fernflower = {
        jar = os.getenv('HOME') .. '/Software/fernflower.jar'
      }
    }
  }
}

TODO List

  • As part of the setup, provide an option to auto install decompilers
  • Implement code to support fernflower decompiler
  • Add tests?
  • Add user commands for files with other extensions?

About

Neovim Plugin to decompile java classes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages