vim-jsx
vim-jsx copied to clipboard
Handling `%` motion for jsx tags.
Consider this code <div onClick={()=>{}}>
if I press %
in the beginning, I expect it to go to the end of line (the second >
) but it goes to first >
. Is it possible to handle it?
Vim makes the same mistake with the it
text object too as it will encompass after the => instead of the actual tag
@shtanton this is solved in my fork: https://github.com/sassanh/vim-jsx/
This was also recently fixed in https://github.com/neoclide/vim-jsx-improve/commit/5f855dafa89bde202a315b76e642addd3dc81d40. Is there an easy way to port the changes over here?
yeah fork this repo, apply the changes in your fork and make a pull request. But seems like the owner of this repo is not actively maintaining it so you may end up using your own fork instead of the main repo.