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

Update linewrapping.lua: Linewrap autostarts only for specified file extensions #1747

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Gaspartcho
Copy link
Contributor

Modifications greatly inspired form the spellcheck plugin.

Now, any time a file is opened, the plugin checks if linewrapping is enabled by default and that the file extension match the given patterns.

data/plugins/linewrapping.lua Outdated Show resolved Hide resolved
Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
data/plugins/linewrapping.lua Outdated Show resolved Hide resolved
data/plugins/linewrapping.lua Outdated Show resolved Hide resolved
data/plugins/linewrapping.lua Outdated Show resolved Hide resolved
Gaspartcho and others added 3 commits March 16, 2024 16:36
mentioned the new config in the description of `enable_by_default`
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
Comment on lines +379 to +380
and (matches_any(self.doc.abs_filename or "", config.plugins.linewrapping.files)
or matches_any(self.doc.filename or "", config.plugins.linewrapping.files))
Copy link
Member

Choose a reason for hiding this comment

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

matches_any is not defined here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I've added it (again, it is coming from the spellcheck plugin).

@takase1121 takase1121 requested a review from Guldoman May 17, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants