From eba60ebf16fcbcf2dcac2eb04ba24bfdbc511b32 Mon Sep 17 00:00:00 2001 From: Lee Tang Date: Tue, 21 Feb 2023 13:19:15 +0800 Subject: [PATCH] update javascript code style Signed-off-by: Lee Tang --- nvim/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/init.lua b/nvim/init.lua index e76a409..b9b6eda 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -54,7 +54,7 @@ cmd([[ autocmd FileType yaml setlocal tabstop=2 shiftwidth=2 softtabstop=2 textw cmd([[ autocmd FileType ruby setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=120 ]]) cmd([[ autocmd FileType less,sass,scss,css setlocal tabstop=2 shiftwidth=2 softtabstop=2 textwidth=120 ]]) cmd( - [[ autocmd FileType javascript,javascript.jsx,javascriptreact,typescript,typescriptreact setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab ]] + [[ autocmd FileType javascript,javascript.jsx,javascriptreact,typescript,typescriptreact setlocal tabstop=2 shiftwidth=2 softtabstop=4 expandtab ]] ) cmd([[iabbrev pdb import pdb; pdb.set_trace()]])