Skip to content

feat(#1837): add git.disable_for_dirs #2239

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

Merged
merged 4 commits into from
Jun 4, 2023
Merged

Conversation

alex-courtis
Copy link
Member

fixes #1837

@NiklasKappel I'd be most grateful if you tested this feature:

cd /path/to/nvim-tree.lua
git pull
git checkout 1837-git-disable-dirs

@NiklasKappel
Copy link

@NiklasKappel I'd be most grateful if you tested this feature:

Both disabled_dirs = { "~/" } and disabled_dirs = { "/var/home/niklas/" } work for me to disable git integration for my home directory (I can no longer see the the icons in nvim-tree that indicate changed or new files).

Interestingly, I can not reproduce the delay I originally described in #1837 right now, neither with the master branch nor this branch. Was there a change to how nvim-tree treats untracked files in the meantime?

@alex-courtis
Copy link
Member Author

Interestingly, I can not reproduce the delay I originally described in #1837 right now, neither with the master branch nor this branch. Was there a change to how nvim-tree treats untracked files in the meantime?

Background git operation experiment was recently concluded and always enabled #2104
That may be the reason for the increase in speed.

Thank you for testing this out.

@alex-courtis alex-courtis changed the title feat(#1837): add git.disabled_dirs feat(#1837): add git.disable_for_dirs Jun 4, 2023
@alex-courtis alex-courtis merged commit 6306140 into master Jun 4, 2023
@alex-courtis alex-courtis deleted the 1837-git-disable-dirs branch June 4, 2023 04:29
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.

Disable git integration for specific paths (i.e. $HOME)?
3 participants