Tuned language client commands
This commit is contained in:
parent
1718c35a1c
commit
e015869642
@ -114,6 +114,7 @@ augroup deoplete
|
|||||||
autocmd CompleteDone * silent! pclose!
|
autocmd CompleteDone * silent! pclose!
|
||||||
augroup END
|
augroup END
|
||||||
call deoplete#custom#source('_', 'matchers', ['matcher_full_fuzzy'])
|
call deoplete#custom#source('_', 'matchers', ['matcher_full_fuzzy'])
|
||||||
|
set completefunc=LanguageClient#complete
|
||||||
|
|
||||||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||||
@ -121,7 +122,9 @@ inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
|||||||
" LanguageClient-neovim
|
" LanguageClient-neovim
|
||||||
set hidden
|
set hidden
|
||||||
nnoremap <F5> :call LanguageClient_contextMenu()<CR>
|
nnoremap <F5> :call LanguageClient_contextMenu()<CR>
|
||||||
nnoremap <F12> :call LanguageClient#textDocument_definition()<CR>
|
nnoremap K :call LanguageClient#textDocument_hover()<CR>
|
||||||
|
nnoremap gd :call LanguageClient#textDocument_definition()<CR>
|
||||||
|
|
||||||
let g:LanguageClient_serverCommands = {
|
let g:LanguageClient_serverCommands = {
|
||||||
\ 'python': ['pyls'],
|
\ 'python': ['pyls'],
|
||||||
\ 'cpp': ['clangd'],
|
\ 'cpp': ['clangd'],
|
||||||
|
Reference in New Issue
Block a user