typescript-tools.vim icon indicating copy to clipboard operation
typescript-tools.vim copied to clipboard

Automatica start TSS and format the key

Open yuit opened this issue 10 years ago • 1 comments

Currently to start the plugin, you have to do :TSSstarthere and type desirable command. Would it be possible to have the plugin start TSS automatically and call TSSkeymap function to get basic keymapping?

yuit avatar Jun 17 '15 20:06 yuit

The plugin provides the functionality, it tries not to prescribe how you use it. You could use standard Vim functionality to autorun commands when you open a buffer.

There is the obvious question of figuring out what root file you want to use when starting tss, though - you can't just start a new tss on every .ts file you open (also, note that the keymap is provided as a sample - feel free to use it, but I don't guarantee that it stays the same).

clausreinke avatar Jun 20 '15 23:06 clausreinke