wellle / targets.vim

Vim plugin that provides additional text objects
MIT License
2.56k stars 53 forks source link

Arguments doesn't work in {} #263

Closed singlexyz closed 3 years ago

singlexyz commented 3 years ago

Example: import { useEffect_, useState } from 'react' means cursor position, when I type vi,. it make the wrong. but if like above: `( useEffect, useState )` it do the right thing.

singlexyz commented 3 years ago

I mod it. mappings.vim call targets#mappings#extend({'a': {'argument': [{'o': '[{([]', 'c': '[])}]', 's': ','}]}})

close this issue.