1
0
Fork 0
mirror of synced 2024-06-02 15:31:09 -04:00
ultimate-vim/sources_non_forked/typescript-vim/ftplugin/typescript.vim

22 lines
447 B
VimL
Raw Normal View History

if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo-=C
compiler typescript
setlocal commentstring=//\ %s
" Set 'formatoptions' to break comment lines but not other lines,
" " and insert the comment leader when hitting <CR> or using "o".
setlocal formatoptions-=t formatoptions+=croql
setlocal suffixesadd+=.ts,.tsx
2023-07-15 06:43:27 -04:00
let b:undo_ftplugin = "setl cms< fo< sua<"
let &cpo = s:cpo_save
unlet s:cpo_save