mxw / vim-jsx

React JSX syntax highlighting and indenting for vim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handling `%` motion for jsx tags.

sassanh opened this issue · comments

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

This was also recently fixed in neoclide/vim-jsx-improve@5f855da. 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.