diff options
author | Guangxiong Lin <[email protected]> | 2022-03-27 09:22:24 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-27 09:22:24 +0800 |
commit | 6f787f8f6f5357e293fe5d0f7b0bdf8d0c73184d (patch) | |
tree | fd6d64e2613e321d7f853164f04a45c7f7080957 /.vim/plugin/youcompleteme.vim | |
parent | 8894a8a719f882adfb62952fa98d475832f7164e (diff) | |
download | dotfiles-6f787f8f6f5357e293fe5d0f7b0bdf8d0c73184d.tar.gz dotfiles-6f787f8f6f5357e293fe5d0f7b0bdf8d0c73184d.tar.bz2 dotfiles-6f787f8f6f5357e293fe5d0f7b0bdf8d0c73184d.zip |
Update the config of ycm (vim)
Diffstat (limited to '.vim/plugin/youcompleteme.vim')
-rw-r--r-- | .vim/plugin/youcompleteme.vim | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/.vim/plugin/youcompleteme.vim b/.vim/plugin/youcompleteme.vim deleted file mode 100644 index 76b2ffa..0000000 --- a/.vim/plugin/youcompleteme.vim +++ /dev/null @@ -1,47 +0,0 @@ -let g:ycm_server_log_level = 'info' -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 = 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, - \ "cpp": 1, - \ "go": 1, - \ "gdscript": 1, - \ "lua": 1, - \ "python": 1, - \ "sh": 1, - \ "vim": 1, - \ "zsh": 1 - \ } - -let g:ycm_filetype_blacklist = { - \ 'tagbar': 1, - \ 'leaderf': 1, - \ 'ledger': 1, - \ 'markdown': 1, - \ 'org': 1, - \ 'vimwiki': 1, - \ } - -command YcmCompleterGoTo :YcmCompleter GoTo -command YcmCompleterGoToType :YcmCompleter GoToType -command YcmCompleterGoToReferences :YcmCompleter GoToReferences -command YcmCompleterGoToImplementation :YcmCompleter GoToImplementation -command YcmCompleterRefactorRename :YcmCompleter RefactorRename - -nnoremap gd :YcmCompleter GoTo<CR> -nnoremap gr :YcmCompleter GoToReferences<CR> -nnoremap gi :YcmCompleter GoToImplementation<CR> -nnoremap gt :YcmCompleter GoToType<CR> -nmap <leader>fs <plug>(YCMFindSymbolInDocument) -nmap <leader>fS <plug>(YCMFindSymbolInWorkspace) -nmap K <plug>(YCMHover) - -autocmd BufWritePre *.rs,*.go call execute('YcmCompleter Format') - |