From 10a5f30536dc2d4abe36d410d83149272ea457fa Mon Sep 17 00:00:00 2001 From: pythoner6 Date: Thu, 22 Feb 2024 01:42:16 -0500 Subject: [PATCH] fix: only set custom config file settings if not set already --- plugin/lazygit.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugin/lazygit.vim b/plugin/lazygit.vim index 44c93be..c5286e5 100644 --- a/plugin/lazygit.vim +++ b/plugin/lazygit.vim @@ -34,9 +34,13 @@ endif " if lazygit_use_custom_config_file_path is set to 1 the " lazygit_config_file_path option will be evaluated -let g:lazygit_use_custom_config_file_path = 0 +if !exists('g:lazygit_use_custom_config_file_path') + let g:lazygit_use_custom_config_file_path = 0 +endif " path to custom config file -let g:lazygit_config_file_path = '' +if !exists('g:lazygit_config_file_path') + let g:lazygit_config_file_path = '' +endif command! LazyGit lua require'lazygit'.lazygit()