Clamp icon indicating copy to clipboard operation
Clamp copied to clipboard

no highlights, can't rename

Open 5hut0 opened this issue 8 years ago • 4 comments

I've switched to Neovim + clamp from vim + clighter. it seems not to work on my end. (OS X 10.11.5, Neovim 0.1.4 has python and python3) any highlights and can't use ClampRename.

my vimrc is like this below:

" ==============================================================================
" Clighter / Clamp
" ==============================================================================
if has('nvim')
  let g:clamp_autostart = 1
  let g:clamp_libclang_file = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib'
  let g:clamp_heuristic_compile_args = 0
  let g:ClampOccurrences = 0
  nnoremap <silent> <Leader><C-r> :call ClampRename()<CR>
else
  " Clighter works perfect on vim
  let g:clighter_autostart = 1
  let g:clighter_libclang_file = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib'
  let g:clighter_heuristic_compile_args = 0
  let g:ClighterOccurrences = 0
  nnoremap <silent> <Leader><C-r> :call clighter#Rename()<CR>
endif

and when I tried to do ClampRename(), error occurs.

Error detected while processing function ClampRename:
line    5:
Invalid channel "2"

5hut0 avatar Jul 11 '16 14:07 5hut0

I'm having the same issue except that I get: Invalid channel "1"

noomly avatar Aug 23 '16 14:08 noomly

@noomly you will have to edit some of the plugin files. I had this issue because python links to python2 instead of python3. You will also need to change how jobs are spawned, as it is outdated

a specific patch is discussed in another issue here

theowen avatar Oct 08 '17 05:10 theowen

Clamp is still buggy and clighter is slow, both they are not maintained anymore. clighter8+vim8 is recommended, it's fast and stable

bbchung avatar Oct 12 '17 00:10 bbchung

Is there any way to do this with neovim? I have tried many plugins and none of them work well.

theowen avatar Oct 12 '17 02:10 theowen