Commit c78e8e2a authored by Murukesh Mohanan's avatar Murukesh Mohanan

switch back to ycm for go

parent 76230d51
...@@ -225,6 +225,7 @@ function! plug#end() ...@@ -225,6 +225,7 @@ function! plug#end()
endif endif
call add(s:triggers[name].map, cmd) call add(s:triggers[name].map, cmd)
elseif cmd =~# '^[A-Z]' elseif cmd =~# '^[A-Z]'
let cmd = substitute(cmd, '!*$', '', '')
if exists(':'.cmd) != 2 if exists(':'.cmd) != 2
call s:assoc(lod.cmd, cmd, name) call s:assoc(lod.cmd, cmd, name)
endif endif
...@@ -251,7 +252,7 @@ function! plug#end() ...@@ -251,7 +252,7 @@ function! plug#end()
for [cmd, names] in items(lod.cmd) for [cmd, names] in items(lod.cmd)
execute printf( execute printf(
\ 'command! -nargs=* -range -bang %s call s:lod_cmd(%s, "<bang>", <line1>, <line2>, <q-args>, %s)', \ 'command! -nargs=* -range -bang -complete=file %s call s:lod_cmd(%s, "<bang>", <line1>, <line2>, <q-args>, %s)',
\ cmd, string(cmd), string(names)) \ cmd, string(cmd), string(names))
endfor endfor
...@@ -750,7 +751,7 @@ function! s:prepare(...) ...@@ -750,7 +751,7 @@ function! s:prepare(...)
for k in ['<cr>', 'L', 'o', 'X', 'd', 'dd'] for k in ['<cr>', 'L', 'o', 'X', 'd', 'dd']
execute 'silent! unmap <buffer>' k execute 'silent! unmap <buffer>' k
endfor endfor
setlocal buftype=nofile bufhidden=wipe nobuflisted nolist noswapfile nowrap cursorline modifiable setlocal buftype=nofile bufhidden=wipe nobuflisted nolist noswapfile nowrap cursorline modifiable nospell
setf vim-plug setf vim-plug
if exists('g:syntax_on') if exists('g:syntax_on')
call s:syntax() call s:syntax()
......
...@@ -74,3 +74,6 @@ QEMU ...@@ -74,3 +74,6 @@ QEMU
deduplication deduplication
ciphertext ciphertext
ciphertexts ciphertexts
filesystem
YJLinux
Kubernetes
...@@ -110,9 +110,9 @@ function! YCMInstallCmd() ...@@ -110,9 +110,9 @@ function! YCMInstallCmd()
if executable('c++') if executable('c++')
let l:ycm_cmd .= ' --clang-completer' let l:ycm_cmd .= ' --clang-completer'
endif endif
"if executable('go') if executable('go')
" let l:ycm_cmd .= ' --gocode-completer' let l:ycm_cmd .= ' --gocode-completer'
"endif endif
if executable('npm') if executable('npm')
let l:ycm_cmd .= ' --tern-completer' let l:ycm_cmd .= ' --tern-completer'
endif endif
...@@ -137,14 +137,14 @@ Plug 'godlygeek/tabular' ...@@ -137,14 +137,14 @@ Plug 'godlygeek/tabular'
if executable('cmake') if executable('cmake')
" YCM command lifted from vim-plug readme " YCM command lifted from vim-plug readme
Plug 'Valloric/YouCompleteMe', { 'do': YCMInstallCmd(), 'for': ['cpp', 'c', 'sh', 'javascript', 'vim', 'tex'] } Plug 'Valloric/YouCompleteMe', { 'do': YCMInstallCmd(), 'for': ['cpp', 'c', 'sh', 'javascript', 'vim', 'tex', 'go'] }
autocmd! User YouCompleteMe if !has('vim_starting') | call youcompleteme#Enable() | endif autocmd! User YouCompleteMe if !has('vim_starting') | call youcompleteme#Enable() | endif
endif endif
if executable('go') if executable('go')
Plug 'fatih/vim-go', {'for': 'go'} Plug 'fatih/vim-go', {'for': 'go'}
Plug 'Shougo/neocomplete.vim', {'for': 'go'} "Plug 'Shougo/neocomplete.vim', {'for': 'go'}
Plug 'Shougo/vimproc.vim', {'do': 'make'} "Plug 'Shougo/vimproc.vim', {'do': 'make'}
Plug 'Shougo/echodoc.vim' "Plug 'Shougo/echodoc.vim'
endif endif
if executable('latex') if executable('latex')
Plug 'lervag/vimtex', {'for': 'tex'} Plug 'lervag/vimtex', {'for': 'tex'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment