diff --git a/ftplugin/typescript.vim b/ftplugin/typescript.vim new file mode 100644 index 0000000..b7bbae5 --- /dev/null +++ b/ftplugin/typescript.vim @@ -0,0 +1 @@ +au BufWrite * :Autoformat diff --git a/plug.vim b/plug.vim index 6be1c20..e6402b5 100644 --- a/plug.vim +++ b/plug.vim @@ -50,7 +50,7 @@ Plug 'roxma/nvim-completion-manager' " Plug cannot actually install this colorscheme, clone and link autoload and " colors manually "Plug 'fneu/breezy' -" run npm i -g typescript tslint so that these plugins have the tools they need +" run npm i -g typescript tslint typescript-formatter so that these plugins have the tools they need " typescript syntax support and other settings Plug 'leafgarland/typescript-vim' " plug into tsserver