DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Clojure Linter in Vim


Clojure Style Guide: bbatsov/clojure-style-guide

Linter:

venantius/vim-cljfmt and venantius/vim-eastwood.

{:user {:plugins [[lein-try "0.4.3"]
                  [cider/cider-nrepl "0.12.0"]
                  [jonase/eastwood "0.2.3"]
                  [cljfmt "0.5.1"]]}}

Add :plugins [[lein-cljfmt "0.5.3"]] into your leiningen project, run:

lein eastwood
lein cljfmt check

Install their vim plugins:

Add Plugin 'venantius/vim-cljfmt' in .vimrc and install it with vim +PluginClean +PluginInstall.

project.clj file:

(defproject sync-with-recur-order "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.8.0"]
                 [org.clojure/data.json "0.2.6"]
                 [lein-cljfmt "0.5.3"]]
  :plugins [[lein-cljfmt "0.5.3"]])


Published

May 28, 2016

Last Updated

May 28, 2016

Category

Tech

Tags

  • clojure 26
  • linter 2
  • vim 92

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor