clojure-vim/clj-refactor.nvim

"Not an editor command: CCleanNS"

matthias-margush opened this issue · 3 comments

I haven't been able to get anything working. Any ideas what I missed?

My init.vim has:

Plug 'neovim/node-host', { 'do': 'npm install -g neovim' }
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
Plug 'clojure-vim/clj-refactor.nvim', { 'do': ':UpdateRemotePlugins'}
» nvim --version
NVIM v0.2.1-866-gf51a39701
Build type: Release
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -I/tmp/neovim-20170910-3687-1oun6bl/build/config -I/tmp/neovim-20170910-3687-1oun6bl/src -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20170910-3687-1oun6bl/build/src/nvim/auto -I/tmp/neovim-20170910-3687-1oun6bl/build/include
Compiled by matthias.margush@C02NL39NG3QT

Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-f51a397_1/share/nvim"

» node --version
v8.4.0

» cat ~/.lein/profiles.clj
{:user {:plugins  [[cider/cider-nrepl "0.15.0"]
                   [refactor-nrepl "2.3.1"]]}
 :cloverage {:plugins  [[lein-cloverage "1.0.9"]]
             :dependencies [[com.fasterxml.jackson.core/jackson-core "2.7.9"]]}
 :pretty {:plugins [[venantius/ultra "0.5.1"]]}}

» npm install -g neovim
/usr/local/bin/neovim-node-host -> /usr/local/lib/node_modules/neovim/bin/cli.js
+ neovim@3.4.5
updated 1 package in 1.552s

rplugin.vim contains:

" node plugins
call remote#host#RegisterPlugin('node', '/Users/matthias.margush/.local/share/nvim/plugged/clj-refactor.nvim/rplugin/node/clj-refactor.js', [
     \ ])

@matthias-margush Apparently, there are incompabilities with a newer version of node-host. I followed instructions posted on the Clojurians Slack to get it working.

  1. In node-host directory, git checkout c1c4872a6a6837f
  2. In node-host directory, npm install
  3. In NeoVim, :UpdateRemotePlugins
  4. Restart NeoVim

This appears to still be an issue with the node-host built into Neovim :'(

This should be fixed now that master works with node-host & node-client >4.