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()
endif
call add(s:triggers[name].map, cmd)
elseif cmd =~# '^[A-Z]'
let cmd = substitute(cmd, '!*$', '', '')
if exists(':'.cmd) != 2
call s:assoc(lod.cmd, cmd, name)
endif
......@@ -251,7 +252,7 @@ function! plug#end()
for [cmd, names] in items(lod.cmd)
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))
endfor
......@@ -750,7 +751,7 @@ function! s:prepare(...)
for k in ['<cr>', 'L', 'o', 'X', 'd', 'dd']
execute 'silent! unmap <buffer>' k
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
if exists('g:syntax_on')
call s:syntax()
......
......@@ -74,3 +74,6 @@ QEMU
deduplication
ciphertext
ciphertexts
filesystem
YJLinux
Kubernetes
......@@ -110,9 +110,9 @@ function! YCMInstallCmd()
if executable('c++')
let l:ycm_cmd .= ' --clang-completer'
endif
"if executable('go')
" let l:ycm_cmd .= ' --gocode-completer'
"endif
if executable('go')
let l:ycm_cmd .= ' --gocode-completer'
endif
if executable('npm')
let l:ycm_cmd .= ' --tern-completer'
endif
......@@ -137,14 +137,14 @@ Plug 'godlygeek/tabular'
if executable('cmake')
" 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
endif
if executable('go')
Plug 'fatih/vim-go', {'for': 'go'}
Plug 'Shougo/neocomplete.vim', {'for': 'go'}
Plug 'Shougo/vimproc.vim', {'do': 'make'}
Plug 'Shougo/echodoc.vim'
"Plug 'Shougo/neocomplete.vim', {'for': 'go'}
"Plug 'Shougo/vimproc.vim', {'do': 'make'}
"Plug 'Shougo/echodoc.vim'
endif
if executable('latex')
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