X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/01989212f60d0853927544b05129a1bf7badffdb..ccdacf21dc7d84e54dc22e5398d5ecb4fb2912ec:/vim/ycm_extra_conf.py diff --git a/vim/ycm_extra_conf.py b/vim/ycm_extra_conf.py index 190cabd..f19fa08 100644 --- a/vim/ycm_extra_conf.py +++ b/vim/ycm_extra_conf.py @@ -91,7 +91,7 @@ def find_nearest_compilation_database(root='.'): elif len(dirs) > 1: logging.info("Multiple compilation databases found!") logging.info(dirs) - dirs.sort(key=lambda x: os.stat(x).st_mtime) + dirs.sort(key=lambda x: os.stat(x).st_mtime, reverse=True) logging.info("Selecting newest: %s" % (dirs[0])) return dirs[0]