From b2aa5e3d3f578042374f47f8259b15b6d92b9c4f Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Wed, 23 Oct 2013 12:30:13 -0700 Subject: [PATCH] Moving client-only settings out of settings JSON Since these options are only used on the client, they shouldn't be in default_settings.json. --- plugin/youcompleteme.vim | 13 +++++++++++++ python/ycm/server/default_settings.json | 4 ---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/plugin/youcompleteme.vim b/plugin/youcompleteme.vim index 24f9f504..f8465da0 100644 --- a/plugin/youcompleteme.vim +++ b/plugin/youcompleteme.vim @@ -100,6 +100,19 @@ let g:ycm_key_detailed_diagnostics = let g:ycm_cache_omnifunc = \ get( g:, 'ycm_cache_omnifunc', 1 ) +let g:ycm_server_use_vim_stdout = + \ get( g:, 'ycm_server_use_vim_stdout', 0 ) + +let g:ycm_server_log_level = + \ get( g:, 'ycm_server_log_level', 'info' ) + +let g:ycm_server_keep_logfiles = + \ get( g:, 'ycm_server_keep_logfiles', 0 ) + +let g:ycm_server_idle_shutdown_seconds = + \ get( g:, 'ycm_server_idle_shutdown_seconds', 43200 ) + + " On-demand loading. Let's use the autoload folder and not slow down vim's " startup procedure. augroup youcompletemeStart diff --git a/python/ycm/server/default_settings.json b/python/ycm/server/default_settings.json index 3cfdbc65..df4b3204 100644 --- a/python/ycm/server/default_settings.json +++ b/python/ycm/server/default_settings.json @@ -26,10 +26,6 @@ "unite": 1, "text": 1 }, - "server_use_vim_stdout": 0, - "server_log_level": "info", - "server_keep_logfiles": 0, - "server_idle_shutdown_seconds": 43200, "auto_start_csharp_server": 1, "auto_stop_csharp_server": 1, "csharp_server_port": 2000