Skip to content

clojure-vim/vim-cider

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

cider.vim

Some additional IDE-like functionality for Clojure development using cider-nrepl.

Using

Requires fireplace.vim, cider-nrepl and refactor-nrepl middlewares:

Cider-nrepl Refactor-nrepl

Leiningen

{:user {:plugins [[cider/cider-nrepl "0.9.1"]
                  [refactor-nrepl "1.0.5"]]}}

Boot

(swap! boot.repl/*default-dependencies*
       concat '[[cider/cider-nrepl "0.9.1"]
                [refactor-nrepl "1.0.5"])

(swap! boot.repl/*default-middleware* conj
       'cider.nrepl/cider-middleware
       'refactor-nrepl.middleware/wrap-refactor)

Cider-nrepl takes care of all other dependencies so you don't need to depend e.g. on cljfmt.

Features

  • Code formatting (uses cljfmt)
    • cff (current form), cf{motion}, cF (current file)
  • Var undef / alias unmap
    • cdd
  • Clean ns (eliminate :use, sort, remove unused stuff and duplication)
    • <F4>
    • FIXME: Adds unnecessary lines

Configuration

let g:cider_no_maps=1 " Disable built-in mappings

" Setup visualmode bindings yourself, to some keys which don't interact
" with e.g. change command
autocmd FileType clojure xmap <buffer> f <Plug>CiderFormat

TODO

License

Copyright (C) 2015 Juho Teperi

Distributed under the MIT License.

About

Additional IDE-like functionality for Clojure development using cider-nrepl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •