diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index ad5222c..139ad0e 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -107,6 +107,8 @@ g:GPGDefaultRecipients = [ 'Danielle McLean ', ] +g:javascript_plugin_jsdoc = 1 + g:markdown_folding = 1 g:markdown_fenced_languages = [ 'bash', 'c', 'dockerfile', @@ -121,6 +123,11 @@ g:markdown_fenced_languages = [ set updatetime=100 g:signify_number_highlight = 1 +g:ale_linters = { + javascript: ['eslint'], + javascriptreact: ['eslint'], + typescript: ['eslint'], +} g:ale_fixers = { python: ['ruff', 'ruff_format'], } diff --git a/dot-config/vim/plugins.vim b/dot-config/vim/plugins.vim index ca54a4a..5abfbc5 100644 --- a/dot-config/vim/plugins.vim +++ b/dot-config/vim/plugins.vim @@ -157,6 +157,13 @@ minpac#add('lambdalisue/fern-ssh') # vim-endwise for XML. Very nice to have when working on HTML documents. minpac#add('alvan/vim-closetag') +# Lots of extra syntax support for JavaScript along with its relatives +# (TypeScript, CoffeeScript) since Vim's built-in support is a bit dated. +minpac#add('kchmck/vim-coffee-script') +minpac#add('pangloss/vim-javascript') +minpac#add('MaxMEllon/vim-jsx-pretty') +minpac#add('HerringtonDarkholme/yats.vim') + # Syntax and indent support for Jinja2 templates. minpac#add('lepture/vim-jinja')