diff options
Diffstat (limited to 'after/ftplugin')
-rw-r--r-- | after/ftplugin/javascript.vim | 12 | ||||
-rw-r--r-- | after/ftplugin/jsx.vim | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/after/ftplugin/javascript.vim b/after/ftplugin/javascript.vim new file mode 100644 index 00000000..e5324c1b --- /dev/null +++ b/after/ftplugin/javascript.vim @@ -0,0 +1,12 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 + +" Vim filetype plugin file +" Language: JavaScript +" Maintainer: vim-javascript community +" URL: https://github.com/pangloss/vim-javascript + +setlocal iskeyword+=$ suffixesadd+=.js + +let b:undo_ftplugin .= ' | setlocal iskeyword< suffixesadd<' + +endif diff --git a/after/ftplugin/jsx.vim b/after/ftplugin/jsx.vim index 76b0a327..fc76b19e 100644 --- a/after/ftplugin/jsx.vim +++ b/after/ftplugin/jsx.vim @@ -5,7 +5,6 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1 " " Language: JSX (JavaScript) " Maintainer: Max Wang <mxawng@gmail.com> -" Depends: pangloss/vim-javascript " """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |