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

[Feature/Fix]: - [Feat]: Allow to change the value of sign column in focused window from any buffer, bring exclude filetypes, buftypes comback - [Fix]: Prevent sign column from updating when buffer is disabled when buffer enter or out #113

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

Conversation

sontungexpt
Copy link

@sontungexpt sontungexpt commented Jul 21, 2023

The first commit adds a new feature that allows users to change the value of the sign column in the focused window from auto to yes
The second commit fixes a bug that caused the sign column to update even when leave bufer but that buffer is disabled . Please review and merge these changes.
The third and fourth commit bring exclude filetypes comback

@sontungexpt sontungexpt changed the title [Feature/Fix]: - [Feat]: Allow to change the value of sign column in focused window from any buffer. - [Fix]: Prevent sign column from updating when buffer is disabled when buffer enter or out [Feature/Fix]: - [Feat]: Allow to change the value of sign column in focused window from any buffer, bring exclude filetypes, buftypes comback - [Fix]: Prevent sign column from updating when buffer is disabled when buffer enter or out Jul 22, 2023
@cryptomilk
Copy link
Collaborator

Thank you very much for your contribution!

Please create one PR for each feature. Don't combine them, so it is easier to comment. All PRs should include tests to make sure your feature works correctly and will not brake when someone else changes some part of the code. So please add tests!

)
end

if #config.exclude.bufnames > 0 then
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think buffer names should be included here. That's too specific, almost definitely better handled by an autocmd in the user's config

@cryptomilk
Copy link
Collaborator

Please split up the PR, fixes in their own PR and features in another or this one ...

@willothy
Copy link
Collaborator

willothy commented Sep 19, 2023

Please split up the PR, fixes in their own PR and features in another or this one ...

@sontungexpt it's likely that some of these features will be cherry picked / not all added at once, and as cryptomilk said it's easier to review with isolated changes. If you could split the changes into separate PRs (i.e. filetype/buftype in one PR, sign column fix in another, etc.) that would be super helpful. Thanks!

Also, try to keep the style compliant to the provided stylua.toml if possible, and avoid formatting changes to README.md. You can use just format to automatically format the Lua code in your PR.

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.

3 participants