diff options
Diffstat (limited to '.vim/plugin/youcompleteme.vim')
-rw-r--r-- | .vim/plugin/youcompleteme.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.vim/plugin/youcompleteme.vim b/.vim/plugin/youcompleteme.vim index 2cb461f..424fdbc 100644 --- a/.vim/plugin/youcompleteme.vim +++ b/.vim/plugin/youcompleteme.vim @@ -3,9 +3,10 @@ let g:ycm_add_preview_to_completeopt = 0 let g:ycm_collect_identifiers_from_comments_and_strings = 1 let g:ycm_complete_in_strings = 1 -let g:ycm_show_diagnostics_ui = 1 +let g:ycm_show_diagnostics_ui = 0 let g:ycm_error_symbol = 'E>' let g:ycm_warning_symbol = 'W>' +autocmd BufNewFile,BufRead *.go let g:ycm_show_diagnostics_ui = 1 let g:ycm_filetype_whilelist = { \ "c": 1, @@ -41,5 +42,5 @@ nmap <leader>fs <plug>(YCMFindSymbolInDocument) nmap <leader>fS <plug>(YCMFindSymbolInWorkspace) nmap K <plug>(YCMHover) -autocmd! BufWritePre *.rs,*.go call execute('YcmCompleter Format') +autocmd BufWritePre *.rs,*.go call execute('YcmCompleter Format') |