Skip to content

Commit fc202ae

Browse files
committedJul 18, 2022
Add Typescript formatting
1 parent ec3e3b0 commit fc202ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎vimrc

+5-4
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,11 @@ if !exists("mm_filetype_config")
286286
autocmd FileType py set errorformat=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m
287287

288288
" source code gets wrapped
289-
autocmd FileType javascript,php,html,python,actionscript set autoindent
289+
autocmd FileType javascript,typescript,php,html,python,actionscript set autoindent
290290

291-
autocmd FileType ruby,javascript,vue set tabstop=2 " number of spaces for a tab
292-
autocmd FileType ruby,javascript,vue set softtabstop=2 " using 2 spaces
293-
autocmd FileType ruby,javascript,vue set shiftwidth=2 " number of spaces to autoindent
291+
autocmd FileType ruby,javascript,typescript,vue set tabstop=2 " number of spaces for a tab
292+
autocmd FileType ruby,javascript,typescript,vue set softtabstop=2 " using 2 spaces
293+
autocmd FileType ruby,javascript,typescript,vue set shiftwidth=2 " number of spaces to autoindent
294294

295295
" Thor classes are just Ruby
296296
autocmd BufNewFile,BufRead *.thor set filetype=ruby
@@ -373,6 +373,7 @@ noremap <silent> <leader>N :noh<cr>:call clearmatches()<cr>
373373
374374
let g:neoformat_try_node_exe = 1
375375
let g:vim_jsx_pretty_colorful_config = 1
376+
let g:snipMate = { 'snippet_version' : 1 }
376377

377378
" for easier debugging
378379
"let g:neoformat_verbose = 1

0 commit comments

Comments
 (0)
Please sign in to comment.