feat: Add deprecation message for old option

This commit is contained in:
Dheepak Krishnamurthy
2023-05-20 17:26:27 -04:00
parent 096bef1ec6
commit 41c617f2da

View File

@@ -19,8 +19,17 @@ if !exists('g:lazygit_use_neovim_remote')
let g:lazygit_use_neovim_remote = executable('nvr') ? 1 : 0
endif
if exists('g:lazygit_floating_window_corner_chars')
echohl WarningMsg
echomsg "`g:lazygit_floating_window_corner_chars` is deprecated. Please use `g:lazygit_floating_window_chars` instead."
echohl None
if !exists('g:lazygit_floating_window_chars')
let g:lazygit_floating_window_chars = g:lazygit_floating_window_corner_chars
endif
endif
if !exists('g:lazygit_floating_window_chars')
let g:lazygit_floating_window_corner_chars = ['╭','─', '╮', '│', '╯','─', '╰', '│']
let g:lazygit_floating_window_chars = ['╭','─', '╮', '│', '╯','─', '╰', '│']
endif
" if lazygit_use_custom_config_file_path is set to 1 the