feat: Change option to lazygit_floating_window_border_chars

This commit is contained in:
Dheepak Krishnamurthy
2023-05-20 17:30:30 -04:00
parent 41c617f2da
commit e90f0ee657
3 changed files with 8 additions and 8 deletions

View File

@@ -60,7 +60,7 @@ The following are configuration options and their defaults.
```vim
let g:lazygit_floating_window_winblend = 0 " transparency of floating window
let g:lazygit_floating_window_scaling_factor = 0.9 " scaling factor for floating window
let g:lazygit_floating_window_chars = ['╭','─', '╮', '│', '╯','─', '╰', '│'] " customize lazygit popup window corner characters
let g:lazygit_floating_window_border_chars = ['╭','─', '╮', '│', '╯','─', '╰', '│'] " customize lazygit popup window corner characters
let g:lazygit_floating_window_use_plenary = 0 " use plenary.nvim to manage floating window if available
let g:lazygit_use_neovim_remote = 1 " fallback to 0 if neovim-remote is not installed
@@ -71,7 +71,7 @@ let g:lazygit_config_file_path = '' " custom config file path
```lua
vim.g.lazygit_floating_window_winblend = 0 -- transparency of floating window
vim.g.lazygit_floating_window_scaling_factor = 0.9 -- scaling factor for floating window
vim.g.lazygit_floating_window_chars = ['','', '', '', '','', '', ''] -- customize lazygit popup window corner characters
vim.g.lazygit_floating_window_border_chars = ['','', '', '', '','', '', ''] -- customize lazygit popup window corner characters
vim.g.lazygit_floating_window_use_plenary = 0 -- use plenary.nvim to manage floating window if available
vim.g.lazygit_use_neovim_remote = 1 -- fallback to 0 if neovim-remote is not installed

View File

@@ -34,7 +34,7 @@ local function open_floating_window()
local opts = { style = 'minimal', relative = 'editor', row = row, col = col, width = width, height = height }
local topleft, top, topright, right, botright, bot, botleft, left
local window_chars = vim.g.lazygit_floating_window_chars
local window_chars = vim.g.lazygit_floating_window_border_chars
if type(window_chars) == 'table' and #window_chars == 8 then
topleft, top, topright, right, botright, bot, botleft, left = unpack(window_chars)
else

View File

@@ -21,15 +21,15 @@ 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."
echomsg "`g:lazygit_floating_window_corner_chars` is deprecated. Please use `g:lazygit_floating_window_border_chars` instead."
echohl None
if !exists('g:lazygit_floating_window_chars')
let g:lazygit_floating_window_chars = g:lazygit_floating_window_corner_chars
if !exists('g:lazygit_floating_window_border_chars')
let g:lazygit_floating_window_border_chars = g:lazygit_floating_window_corner_chars
endif
endif
if !exists('g:lazygit_floating_window_chars')
let g:lazygit_floating_window_chars = ['╭','─', '╮', '│', '╯','─', '╰', '│']
if !exists('g:lazygit_floating_window_border_chars')
let g:lazygit_floating_window_border_chars = ['╭','─', '╮', '│', '╯','─', '╰', '│']
endif
" if lazygit_use_custom_config_file_path is set to 1 the