summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@gmail.com>2016-07-21 09:10:35 +0200
committerEkaitz Zárraga <ekaitz.zarraga@gmail.com>2016-07-21 09:10:35 +0200
commit551f755c784fd14f992db8b6ab4012b90f2c0ff4 (patch)
tree1290060990fc0c2d539feb5a6703c23425c55d96
parenta4602751fbb633244ff3aa76de4e5d0ed18000e3 (diff)
javascript folding to indent
-rw-r--r--nvim/nvim/ftplugin/javascript.vim6
-rw-r--r--nvim/nvim/shada/main.shadabin3678 -> 54238 bytes
-rw-r--r--vim/.vim/ftplugin/javascript.vim6
3 files changed, 6 insertions, 6 deletions
diff --git a/nvim/nvim/ftplugin/javascript.vim b/nvim/nvim/ftplugin/javascript.vim
index d140ed6..cde3013 100644
--- a/nvim/nvim/ftplugin/javascript.vim
+++ b/nvim/nvim/ftplugin/javascript.vim
@@ -1,4 +1,4 @@
-set tabstop=2 softtabstop=0 expandtab shiftwidth=2
-set autoindent
+setlocal tabstop=2 softtabstop=0 expandtab shiftwidth=2
+setlocal autoindent
-let javaScript_fold=1
+setlocal foldmethod=indent
diff --git a/nvim/nvim/shada/main.shada b/nvim/nvim/shada/main.shada
index bf34b3d..5e5cf2d 100644
--- a/nvim/nvim/shada/main.shada
+++ b/nvim/nvim/shada/main.shada
Binary files differ
diff --git a/vim/.vim/ftplugin/javascript.vim b/vim/.vim/ftplugin/javascript.vim
index d140ed6..cde3013 100644
--- a/vim/.vim/ftplugin/javascript.vim
+++ b/vim/.vim/ftplugin/javascript.vim
@@ -1,4 +1,4 @@
-set tabstop=2 softtabstop=0 expandtab shiftwidth=2
-set autoindent
+setlocal tabstop=2 softtabstop=0 expandtab shiftwidth=2
+setlocal autoindent
-let javaScript_fold=1
+setlocal foldmethod=indent