Skip to content

fix(auto_enable): trigger on FileType instead of BufEnter#144

Open
ruslanSorokin wants to merge 1 commit into
uga-rosa:mainfrom
ruslanSorokin:fix/auto_enable/remove-race-condition-on-filetype-detection
Open

fix(auto_enable): trigger on FileType instead of BufEnter#144
ruslanSorokin wants to merge 1 commit into
uga-rosa:mainfrom
ruslanSorokin:fix/auto_enable/remove-race-condition-on-filetype-detection

Conversation

@ruslanSorokin

Copy link
Copy Markdown

This is the earliest event that guarantees the filetype has already been detected.

This is the earliest event that guarantees the filetype has already been
detected.
@uga-rosa

uga-rosa commented Nov 5, 2025

Copy link
Copy Markdown
Owner

If I remember correctly, when re-entering a buffer that had been opened before or something like that, it didn’t work well, so I gave up on using the FileType event.

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