From e5d640daec0db783dc2a51c53ac7cf1e7704197e Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 23 Oct 2021 01:29:39 +0800 Subject: [PATCH] simplify code --- init.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init.vim b/init.vim index 55b597f..44a11e7 100644 --- a/init.vim +++ b/init.vim @@ -20,8 +20,7 @@ let g:config_file_list = [ \ 'themes.vim' \ ] -let g:nvim_config_root = expand(':p:h') for s:fname in g:config_file_list - execute printf('source %s/core/%s', g:nvim_config_root, s:fname) + execute printf('source %s/core/%s', stdpath('config'), s:fname) endfor "}