From de247d43129b95c8b51408df29a73c4ee3915a42 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Wed, 28 Aug 2019 17:03:45 -0700 Subject: [PATCH] nvim: Set two-space JS indent --- neovim/init.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neovim/init.vim b/neovim/init.vim index 9034b8a..ac836c9 100644 --- a/neovim/init.vim +++ b/neovim/init.vim @@ -322,4 +322,7 @@ command NoCrosshair :set virtualedit= nocursorcolumn let g:AutoPairsShortcutToggle = '' -autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab +autocmd FileType javascript.jsx setlocal ts=2 sts=2 sw=2 expandtab +autocmd FileType javascript setlocal ts=2 sts=2 sw=2 expandtab +autocmd FileType json setlocal ts=2 sts=2 sw=2 expandtab +autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab