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 ftplugin for fugitive filetype #1565

Closed
wants to merge 1 commit into from
Closed

Conversation

nhooyr
Copy link

@nhooyr nhooyr commented Jul 20, 2020

Allows users to override foldlevel as they can autocmd on FileType.

See #1563

Right now foldlevel is unconditionally set to 1 after reading the file.

An autocmd on BufWinEnter does not work either.

Allows users to override foldlevel as they can autocmd on FileType.

See tpope#1563

Right now foldlevel is unconditionally set to 1 after reading the file.

An autocmd on BufWinEnter does not work either.
@tpope
Copy link
Owner

tpope commented Mar 13, 2021

The reason the code is in the current location is because it's not supposed to run on every FileType event. It should only run for :Git and not for :edit .git/index.

But I think I would be fine with ditching the folding defaults entirely. It's not really part of the standard workflow.

@tpope tpope closed this in 7bee111 Mar 20, 2021
Gelio pushed a commit to Gelio/vim-fugitive that referenced this pull request Mar 24, 2021
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.

2 participants