diff --git a/vim/bundle/javascript/ISSUE_TEMPLATE.md b/vim/bundle/javascript/ISSUE_TEMPLATE.md index 155ea8d..b1ddccb 100644 --- a/vim/bundle/javascript/ISSUE_TEMPLATE.md +++ b/vim/bundle/javascript/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/vim/bundle/javascript/README.md b/vim/bundle/javascript/README.md index b60614f..b9ac49f 100644 --- a/vim/bundle/javascript/README.md +++ b/vim/bundle/javascript/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/vim/bundle/javascript/indent/javascript.vim b/vim/bundle/javascript/indent/javascript.vim index e7334bf..d0ac384 100644 --- a/vim/bundle/javascript/indent/javascript.vim +++ b/vim/bundle/javascript/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