summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-06-14 16:07:20 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-06-14 16:07:20 +0200
commit6b169212f82cbe81d1fbf3ae7f7dcea14bc5bec4 (patch)
treefc88e9fa76fadcb49587fbf9780da9147f8e9f3c /ftplugin
parent2edc785a5e21cf41960223b09bba8efc9276e777 (diff)
downloadvim-polyglot-6b169212f82cbe81d1fbf3ae7f7dcea14bc5bec4.tar.gz
vim-polyglot-6b169212f82cbe81d1fbf3ae7f7dcea14bc5bec4.zip
Add svelte support, closes #410
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/rst.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftplugin/rst.vim b/ftplugin/rst.vim
index 3c1e9032..064bd88e 100644
--- a/ftplugin/rst.vim
+++ b/ftplugin/rst.vim
@@ -38,7 +38,7 @@ if exists("g:rst_style") && g:rst_style != 0
setlocal expandtab shiftwidth=3 softtabstop=3 tabstop=8
endif
-if has('patch-7.3.867') " Introduced the TextChanged event.
+if g:rst_fold_enabled != 0 && has('patch-7.3.867') " Introduced the TextChanged event.
setlocal foldmethod=expr
setlocal foldexpr=RstFold#GetRstFold()
setlocal foldtext=RstFold#GetRstFoldText()