machakann/vim-sandwich

sdf command can not delete complete function name

sillybun opened this issue · 2 comments

For example:

self.__init__(a, b{cursor})

and press sdf will leave self out,

That's because self is neither a function nor a method. It's an instance. Anyway, you can change the behavior as you want. Use g:sandwich#magicchar#f#patterns or b:sandwich_magicchar_f_patterns. Check out :help sandwich-miscellaneous or #71, #105.

Excellent, thank you!