diff --git a/README.md b/README.md index 0fe7701..127b751 100644 --- a/README.md +++ b/README.md @@ -49,11 +49,11 @@ using [lazy.nvim](https://github.com/folke/lazy.nvim): desc = 'gitpad branch', }, { - "pbv", + '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 diff --git a/lua/gitpad/init.lua b/lua/gitpad/init.lua index b1ddaec..dc034bc 100644 --- a/lua/gitpad/init.lua +++ b/lua/gitpad/init.lua @@ -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 })