brandon1024 / cortado.vim

Import Java classes by name, find unused import statemens, and many other goodies!
MIT License
2 stars 0 forks source link

feat: introduce feature for finding unused imports #39

Closed brandon1024 closed 1 year ago

brandon1024 commented 1 year ago

Introduce a new feature for finding and removing unused import statements in a buffer. This feature works by performing a simple search in the buffer for any potential usages of an imported identifier. If none are found, the import statement is highlighted or removed.

This plugin isn't smart enough to look at the AST of the Java file. If a keyword is present in a comment or string, the plugin will not report the unused import.