coc for vim
This commit is contained in:
parent
072228591e
commit
31c9d70d42
5 changed files with 60 additions and 25 deletions
54
.vimrc
54
.vimrc
|
|
@ -161,19 +161,20 @@ Plug 'derekwyatt/vim-scala', {'for': 'scala'}
|
|||
Plug 'hwayne/tla.vim'
|
||||
|
||||
" Plugins that autocomplete
|
||||
Plug 'Shougo/deoplete.nvim'
|
||||
Plug 'zchee/deoplete-clang'
|
||||
Plug 'zchee/deoplete-go', {'build': {'unix': 'make'}}
|
||||
Plug 'zchee/deoplete-jedi'
|
||||
Plug 'davidhalter/jedi-vim'
|
||||
Plug 'eagletmt/neco-ghc', {'for': 'haskell'}
|
||||
Plug 'eagletmt/ghcmod-vim', {'for': 'haskell'}
|
||||
Plug 'racer-rust/vim-racer', {'for': 'rust'}
|
||||
Plug 'autozimu/LanguageClient-neovim', {
|
||||
\ 'branch': 'next',
|
||||
\ 'do': 'bash install.sh',
|
||||
\ }
|
||||
"Plug 'Shougo/deoplete.nvim'
|
||||
"Plug 'zchee/deoplete-clang'
|
||||
"Plug 'zchee/deoplete-go', {'build': {'unix': 'make'}}
|
||||
"Plug 'zchee/deoplete-jedi'
|
||||
"Plug 'davidhalter/jedi-vim'
|
||||
"Plug 'eagletmt/neco-ghc', {'for': 'haskell'}
|
||||
"Plug 'eagletmt/ghcmod-vim', {'for': 'haskell'}
|
||||
"Plug 'racer-rust/vim-racer', {'for': 'rust'}
|
||||
"Plug 'autozimu/LanguageClient-neovim', {
|
||||
"\ 'branch': 'next',
|
||||
"\ 'do': 'bash install.sh',
|
||||
"\ }
|
||||
"Plug 'ensime/ensime-vim', { 'do': ':UpdateRemotePlugins' }
|
||||
Plug 'neoclide/coc.nvim', {'tag': '*', 'do': './install.sh'}
|
||||
|
||||
" Plugins that do specific things
|
||||
Plug 'Shougo/vimproc.vim'
|
||||
|
|
@ -191,6 +192,10 @@ Plug 'ncm2/float-preview.nvim'
|
|||
|
||||
call plug#end()
|
||||
|
||||
nmap <silent> gd <Plug>(coc-definition)
|
||||
nmap <silent> gy <Plug>(coc-type-definition)
|
||||
nmap <silent> gi <Plug>(coc-implementation)
|
||||
nmap <silent> gr <Plug>(coc-references)
|
||||
|
||||
"NeoBundle 'eclim'
|
||||
"https://git.wincent.com/command-t.git
|
||||
|
|
@ -247,17 +252,17 @@ setlocal cursorline
|
|||
" ** PLUGIN CONFIGURATION **
|
||||
"
|
||||
" Change the source rank
|
||||
call deoplete#custom#option('sources', {
|
||||
\ 'python': ['LanguageClient', 'jedi'],
|
||||
\})
|
||||
call deoplete#custom#source('buffer', 'rank', 1)
|
||||
let g:deoplete#sources#clang#libclang_path = '/usr/lib/llvm-6.0/lib/libclang.so'
|
||||
let g:deoplete#sources#clang#clang_header = '/usr/lib/llvm-6.0/lib/clang'
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
let g:deoplete#sources = {}
|
||||
let g:deoplete#sources.scala = ['buffer', 'tags', 'omni']
|
||||
let g:deoplete#omni#input_patterns = {}
|
||||
let g:deoplete#omni#input_patterns.scala = ['[^. *\t0-9]\.\w*',': [A-Z]\w', '[\[\t\( ][A-Za-z]\w*']
|
||||
"call deoplete#custom#option('sources', {
|
||||
"\ 'python': ['LanguageClient', 'jedi'],
|
||||
"\})
|
||||
"call deoplete#custom#source('buffer', 'rank', 1)
|
||||
"let g:deoplete#sources#clang#libclang_path = '/usr/lib/llvm-6.0/lib/libclang.so'
|
||||
"let g:deoplete#sources#clang#clang_header = '/usr/lib/llvm-6.0/lib/clang'
|
||||
"let g:deoplete#enable_at_startup = 1
|
||||
"let g:deoplete#sources = {}
|
||||
"let g:deoplete#sources.scala = ['buffer', 'tags', 'omni']
|
||||
"let g:deoplete#omni#input_patterns = {}
|
||||
"let g:deoplete#omni#input_patterns.scala = ['[^. *\t0-9]\.\w*',': [A-Z]\w', '[\[\t\( ][A-Za-z]\w*']
|
||||
" * Vim general/Unknown
|
||||
let python_highlight_all = 1
|
||||
let g:Tb_MaxSize=0
|
||||
|
|
@ -437,10 +442,9 @@ let g:go_fmt_command = "goimports"
|
|||
"let g:go_auto_type_info = 1
|
||||
let g:go_updatetime = 300
|
||||
"let g:go_bin_path = "$HOME/.go/bin"
|
||||
|
||||
let g:go_def_mode = 'guru'
|
||||
|
||||
" ** STATUSLINE **
|
||||
"
|
||||
set laststatus=2
|
||||
set statusline=%t "tail of the filename
|
||||
"set statusline+=[%{&ff}] "file format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue