chrisgrieser / nvim-spider

Use the w, e, b motions like a spider. Move by subwords and skip insignificant punctuation.
MIT License
663 stars 13 forks source link

Feature - Ability to extend the default patterns #38

Closed roycrippen4 closed 10 months ago

roycrippen4 commented 10 months ago

This PR allows users to pass in a patterns table and a overrideDefaults boolean into the customPatterns table. The changes are backwards compatible and type safe. Users can continue to use the customPatterns in the same way they are currently (no breaking changes). Or they can choose to use the new options to extend the default patterns with their own patterns.

chrisgrieser commented 10 months ago

Good idea.

It seems you have used a formatter on the readme, introducing lots of changes? Could you undo those, so the PR has a clean diff?

roycrippen4 commented 10 months ago

No problem! Thanks for making a great plugin