clj-refactor.nvim


Ⅰ. 插件描述

A neovim clojure refactoring plugin

Ⅱ. 基本信息

创建日期:  2015-11-23
使用用户:  5
Github星:  34
插件作者:  clojure-vim

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'snoe/clj-refactor-nvim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'snoe/clj-refactor-nvim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'snoe/clj-refactor-nvim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/snoe/clj-refactor.nvim

Ⅳ. 文档说明

A neovim port of clj-refactor.el

Usage

All commands are mapped under the cr prefix and use a two letter mnemonic shortcut. E.g. crrs for Clojure Refactor Rename Symbol.The full list is below.

Installation

Pre-requisites

Install node.js

Install latest neovim

Install node-host

Install refactor-nrepl

Install vim-fireplace

Vundle

Using Vundle, add this to your vundle .config/nvim/init.vim section:

Plugin 'snoe/clj-refactor.nvim'

Inside nvim

  • run :PluginInstall
  • :UpdateRemotePlugins you should see remote/host: node host registered plugins ['clj-refactor.nvim']
  • close all nvims simultaneously
  • refactor

Progress

Options

You can set g:clj_refactor_prune_ns_form and g:clj_refactor_prefix_rewriting to 0 to affect the corresponding middleware options. Both default to 1.

Passive abilities

Commands

Development / Testing

Run lein npm install

I generally have 4 terminals open:

  • $ rlwrap lein figwheel
  • $ node target/out/tests.js
  • $ lein cljsbuild auto plugin
  • $ tail -f $NEOVIM_JS_DEBUG

Somewhere in your environment do export NEOVIM_JS_DEBUG=~/nvimdebug.log and neovim will dump messages from the plugin there. If something goes wrong it will likely show up in ~/.nvimlog

添加新评论