Clamp
Clamp copied to clipboard
no highlights, can't rename
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"
I'm having the same issue except that I get:
Invalid channel "1"
@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
Clamp is still buggy and clighter is slow, both they are not maintained anymore. clighter8+vim8 is recommended, it's fast and stable
Is there any way to do this with neovim? I have tried many plugins and none of them work well.