Skip to content

Commit 5cad90b

Browse files
committed
fix: use config.floating_winopts.style
1 parent b5cbbcb commit 5cad90b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ using [lazy.nvim](https://github.com/folke/lazy.nvim):
4949
desc = 'gitpad branch',
5050
},
5151
{
52-
"<leader>pbv",
52+
'<leader>pvs',
5353
function()
54-
require("gitpad").toggle_gitpad_branch({ window_type = "split", split_win_opts = { split = "right" } })
54+
require('gitpad').toggle_gitpad_branch({ window_type = 'split', split_win_opts = { split = 'right' } })
5555
end,
56-
desc = "gitpad branch vertical split",
56+
desc = 'gitpad branch vertical split',
5757
},
5858

5959
-- Daily notes

lua/gitpad/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function M.open_window(opts)
195195
-- But what's kinda annoying is the fact that using is would then
196196
-- set the `signcolumn` to be `auto` which is not what I want most of the time
197197
-- So let's just set all minimal options except signcolumn to be no
198-
if M.config.style == '' then
198+
if M.config.floating_win_opts.style == '' then
199199
vim.api.nvim_set_option_value('number', false, { win = gitpad_win_id })
200200
vim.api.nvim_set_option_value('relativenumber', false, { win = gitpad_win_id })
201201
vim.api.nvim_set_option_value('cursorline', false, { win = gitpad_win_id })

0 commit comments

Comments
 (0)