/amethyst

Jetbrains plugin for cleaning Clojure namespace styles

Primary LanguageKotlinEclipse Public License 2.0EPL-2.0

Amethyst

Build Status License Version Downloads

Clean Clojure Namespace Declarations With An Opinionated Style Guide.

Feature

This plugin is a port of the refactor-nrepl's clean-ns operation.

  • Eliminate :use clauses in favor of refer :all.
  • Sort required libraries, imports and vectors of referred symbols.
  • Remove any duplication in the :require and :import form.

Install

Preferences(Settings) -> Plugins -> Marketplace -> Search "Amethyst" -> Install Plugin

Usage

  • Right click mouse -> clean ns

editor-right-click

  • Ctrl + Shift + A -> clean ns

search-action