Skip to content

Commit

Permalink
fix: use config.floating_winopts.style
Browse files Browse the repository at this point in the history
  • Loading branch information
yujinyuz committed Jul 11, 2024
1 parent b5cbbcb commit 5cad90b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ using [lazy.nvim](https://github.com/folke/lazy.nvim):
desc = 'gitpad branch',
},
{
"<leader>pbv",
'<leader>pvs',
function()
require("gitpad").toggle_gitpad_branch({ window_type = "split", split_win_opts = { split = "right" } })
require('gitpad').toggle_gitpad_branch({ window_type = 'split', split_win_opts = { split = 'right' } })
end,
desc = "gitpad branch vertical split",
desc = 'gitpad branch vertical split',
},

-- Daily notes
Expand Down
2 changes: 1 addition & 1 deletion lua/gitpad/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function M.open_window(opts)
-- But what's kinda annoying is the fact that using is would then
-- set the `signcolumn` to be `auto` which is not what I want most of the time
-- So let's just set all minimal options except signcolumn to be no
if M.config.style == '' then
if M.config.floating_win_opts.style == '' then
vim.api.nvim_set_option_value('number', false, { win = gitpad_win_id })
vim.api.nvim_set_option_value('relativenumber', false, { win = gitpad_win_id })
vim.api.nvim_set_option_value('cursorline', false, { win = gitpad_win_id })
Expand Down

0 comments on commit 5cad90b

Please sign in to comment.