Last active
June 5, 2018 07:14
-
-
Save kirykr/379642873181e0bacd0da31da4d3df1d to your computer and use it in GitHub Desktop.
sublime + youcompleteme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"filepath_completion_use_working_dir": 0, | |
"auto_trigger": 1, | |
"min_num_of_chars_for_completion": 2, | |
"min_num_identifier_candidate_chars": 0, | |
"semantic_triggers": {}, | |
"filetype_specific_completion_to_disable": { | |
"gitcommit": 1 | |
}, | |
"seed_identifiers_with_syntax": 0, | |
"collect_identifiers_from_comments_and_strings": 0, | |
"collect_identifiers_from_tags_files": 0, | |
"max_num_identifier_candidates": 10, | |
"extra_conf_globlist": [], | |
"global_ycm_extra_conf": "", | |
"confirm_extra_conf": 1, | |
"complete_in_comments": 0, | |
"complete_in_strings": 1, | |
"max_diagnostics_to_display": 30, | |
"filetype_whitelist": { | |
"*": 1 | |
}, | |
"filetype_blacklist": { | |
"tagbar": 1, | |
"qf": 1, | |
"notes": 1, | |
"markdown": 1, | |
"netrw": 1, | |
"unite": 1, | |
"text": 1, | |
"vimwiki": 1, | |
"pandoc": 1, | |
"infolog": 1, | |
"mail": 1 | |
}, | |
"auto_start_csharp_server": 1, | |
"auto_stop_csharp_server": 1, | |
"use_ultisnips_completer": 1, | |
"csharp_server_port": 0, | |
"hmac_secret": "key generated by sublime above", | |
"server_keep_logfiles": 0, | |
"gocode_binary_path": "", | |
"godef_binary_path": "", | |
"rust_src_path": "", | |
"racerd_binary_path": "", | |
"python_binary_path": "" | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use /Users/kiry/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd if exist? | |
// install YouCompleteMe for sublime text | |
// goto Command Palette > Ycmd: Create HMAC keys in sublime | |
// goto https://packagecontrol.io/packages/YcmdCompletion #choose option 2 for starting ycmd server | |
// got https://github.com/Valloric/ycmd#user-level-customization clone and move the dir to ~/.ycmd | |
// cd to ~/.ycmd/ycmd and run ./build.py --all you might see golang error please see https://stackoverflow.com/a/27709931 | |
// copy default_setting.json below to ~/.ycmd/ycmd/ and replace | |
// "hmac_secret": "to key that generated by sublime above", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"use_auto_start_localserver": 1, | |
"ycmd_path": "/Users/kiry/.ycmd/ycmd", | |
"default_settings_path":"/Users/your-name/.ycmd/ycmd/default_settings.json", | |
"HMAC": "key generated by sublime above", | |
"languages": ["cpp", "python", "ruby", "js", "php", "java", "cs"], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment