This repository was archived by the owner on Jul 30, 2020. It is now read-only.
This repository was archived by the owner on Jul 30, 2020. It is now read-only.
[LC] sending on a disconnected channel #873
Open
Description
sorry to bother you . Here is my configuration in ~/.config/nvim/init.vim
,
set nu!
set background=dark
syntax on
set autoindent
set showmatch
set ai!
call plug#begin('~/.local/share/nvim/plugged')
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
" Multi-entry selection UI. FZF
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'junegunn/vim-easy-align'
Plug 'Shougo/deoplete-clangx'
call plug#end()
let g:deoplete#enable_at_startup = 1
let g:deoplete#enable_smart_case = 1
call deoplete#custom#source('LanguageClient',
\ 'min_pattern_length',
\ 2)
call deoplete#custom#source('_',
\ 'disabled_syntaxes', ['String']
\ )
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
call deoplete#custom#option('sources', {
\ 'cpp': ['LanguageClient'],
\ 'c': ['LanguageClient'],
\ 'zsh': ['zsh']
\})
let g:deoplete#ignore_sources = {}
let g:deoplete#ignore_sources._ = ['buffer', 'around']
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
inoremap <expr><S-tab> pumvisible() ? "\<c-p>" : "\<tab>"
let g:LanguageClient_rootMarkers = {
\ 'cpp': ['compile_commands.json', 'build'],
\ 'c': ['compile_commands.json', 'build']
\ }
let g:LanguageClient_serverCommands = {
\ 'cpp': [expand('/Users/lenajin/Desktop/cquery/build/release/bin/cquery'), '--language-server', '--log-file=/tmp/cq.log'],
\ }
let g:LanguageClient_autoStart = 1
let g:LanguageClient_loadSettings = 1
let g:LanguageClient_settingsPath = '/home/lenajin/.config/nvim/settings.json'
set completefunc=LanguageClient#complete
set formatexpr=LanguageClient_textDocument_rangeFormatting()
nnoremap <silent> gh :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
nnoremap <silent> gr :call LanguageClient#textDocument_references()<CR>
nnoremap <silent> gs :call LanguageClient#textDocument_documentSymbol()<CR>
nnoremap <silent> rn :call LanguageClient#textDocument_rename()<CR>
But when i open a cpp file and input :rn
, there is an error as [LC] sending on a disconnected channel . Could you help me to solve the problem or if there is something wrong with my config? How can i test whether i have a right config now? Thanks a lot.
Metadata
Metadata
Assignees
Labels
No labels