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

feat: disable by filetype #78

Merged
merged 6 commits into from
Jun 25, 2024
Merged

feat: disable by filetype #78

merged 6 commits into from
Jun 25, 2024

Conversation

marovira
Copy link
Contributor

This fixes #77 by allowing users to disable precognition based on the filetype of the buffer.
The values in the default table were taken directly from hardtime, but they may be redundant based on the existing functionality of is_blacklisted_buffer. If that's the case, I'm open to trimming it down.

Copy link
Owner

@tris203 tris203 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, few small comments then looks good to me!

lua/precognition/init.lua Outdated Show resolved Hide resolved
lua/precognition/utils.lua Outdated Show resolved Hide resolved
lua/precognition/init.lua Outdated Show resolved Hide resolved
@tris203 tris203 added this to the 1.1.0 milestone Jun 25, 2024
@tris203
Copy link
Owner

tris203 commented Jun 25, 2024

Thanks for the PR!

@tris203 tris203 merged commit 2a566f0 into tris203:main Jun 25, 2024
10 checks passed
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 on FileType
2 participants