Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option for persistent recent section #1688

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

laughingman-hass
Copy link

fixes #1687

This PR adds a new option config.sections.recent.always, which defaults to false. This keeps the current behavior which only shows the recent section if there is no unmerged commits. which looks like this

image

Setting this option to true will always show the recent section. which looks like this

image

@@ -404,6 +404,16 @@ describe("Neogit config", function()
assert.True(vim.tbl_count(require("neogit.config").validate_config()) ~= 0)
end)

it("should return invalid when sections.recent.hidden isn't a boolean", function()
config.values.sections.recent.hidden = "not a boolean"
assert.True(vim.tbl_count(require("neogit.config").validate_config()) ~= 0)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the additional test for the hidden. I'm unsure why this results to true, even the the default config is false

@laughingman-hass
Copy link
Author

laughingman-hass commented Mar 15, 2025

I didn't find a documentation section, where I could provide additional context for the option or the current behavior. Happy to add this, if you can point me to somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add an option for persistent recent commits section
1 participant