You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reason: This forces preview highlighting on the user.
Neovim's philosophy allows the user to configure syntax highlighting on ftplugin events. For example, I may want to conditionally enable tree-sitter highlighting depending on the file size in languages with slow parsers or inefficient queries. With tree-sitter highlighting enabled unconditionally, preview scratch buffers can really slow down the UI.
Before this change, fff.nvim already set all the right properties to prevent side-effects like starting LSP clients.
If this is about lazy-loading plugins:
See :h lua-plugin-lazy.
If a plugin is misbehaving in a scratch buffer because it emits a filetype event, that should be fixed in the plugin (e.g. it can check the buftype property).
There is nothing in :h filetype that states that scratch/preview buffers cannot have a filetype. Another example of buffers that have filetypes are fugitive.vim diffs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
noticed that e.g. my Merlin plugin was being loaded while cycling through file results in the picker.
this does what telescope does, it avoids running the filetype events and just loads the filetype highlighter.