diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index 155ea8d..b1ddccb 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -1,12 +1,13 @@ -If you are reporting an issue that involves any JSX (e.g. -
{`${example}`}
), PLEASE PLEASE PLEASE make sure you have properly +*Requisite minimal reproducible example, formatted as plain text :* + +
+ +#### Optional: concerning jsx. +PLEASE PLEASE PLEASE make sure you have properly setup and are sourcing this plugin https://github.com/mxw/vim-jsx WE DO NOT support JSX automatically, you need another plugin to add get this functionality. -If applicable, include a snippet of code that we can easily copy and paste that -replicates your bug. - Make sure the bug still exists if you disable all other javascript plugins except the one noted above, mxw/vim-jsx diff --git a/README.md b/README.md index b60614f..b9ac49f 100644 --- a/README.md +++ b/README.md @@ -51,14 +51,16 @@ Default Value: 0 ----------------- -``` -set foldmethod=syntax +```vim +augroup javascript_folding + au! + au FileType javascript setlocal foldmethod=syntax +augroup END ``` -Enables code folding based on our syntax file. +Enables code folding for javascript based on our syntax file. -Please note this can have a dramatic effect on performance and because it is a -global vim option, we do not set it ourselves. +Please note this can have a dramatic effect on performance. ## Concealing Characters diff --git a/indent/javascript.vim b/indent/javascript.vim index e7334bf..d0ac384 100644 --- a/indent/javascript.vim +++ b/indent/javascript.vim @@ -2,7 +2,7 @@ " Language: Javascript " Maintainer: Chris Paul ( https://github.com/bounceme ) " URL: https://github.com/pangloss/vim-javascript -" Last Change: August 12, 2017 +" Last Change: December 4, 2017 " Only load this indent file when no other was loaded. if exists('b:did_indent') @@ -10,10 +10,6 @@ if exists('b:did_indent') endif let b:did_indent = 1 -" indent correctly if inside