From 8f12e34f1c8819d7e18a7a43e7bc9b04ee6fad0c Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 9 Jul 2021 14:08:48 +0100 Subject: [PATCH] update js foldmethod --- after/ftplugin/javascript.vim | 2 +- ftplugin/javascript.vim | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/after/ftplugin/javascript.vim b/after/ftplugin/javascript.vim index 23f5a9d..7c7f9dc 100644 --- a/after/ftplugin/javascript.vim +++ b/after/ftplugin/javascript.vim @@ -1,4 +1,4 @@ -" note this are also set in ../ftplugin/javascript.vim +" NOTE also see ../ftplugin/javascript.vim set shiftwidth=2 " https://gist.github.com/romainl/1f50c55b0ee92e5420de51e6c4b38491 diff --git a/ftplugin/javascript.vim b/ftplugin/javascript.vim index 393635a..8d449ca 100644 --- a/ftplugin/javascript.vim +++ b/ftplugin/javascript.vim @@ -1,5 +1,7 @@ +" also see after/ftplugin/javascript.vim + set iskeyword+=$ set tabstop=2 -" note this are also set in after/ftplugin/javascript.vim set shiftwidth=2 +set foldmethod=syntax