GitHub - myint/syntastic-extras: Additional Syntastic syntax checkers and features (for Vim)
Skip to content

Additional Syntastic syntax checkers and features (for Vim)

Notifications You must be signed in to change notification settings

myint/syntastic-extras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syntastic-extras

Build status

Additional syntax checkers for the Vim plugin Syntastic.

Checkers

  • C:
" Like Syntastic's normal checker, but only checks files if there is a
" `.syntastic_c_config` file existing in the directory or an ancestor
" directory. It ignores warnings in included files by using `-isystem`
" instead of `-I`. It also supports `compile_commands.json` files generated
" by CMake. `compile_commands.json` is used if the Syntastic configuration
" file is not found. `compile_commands.json` is found using an ancestor
" search for `build/compile_commands.json`.
let g:syntastic_c_checkers = ['check']
  • C++:
" See above, but replace '.syntastic_c_config' with
" `.syntastic_cpp_config`.
let g:syntastic_cpp_checkers = ['check']
  • cfg/dosini:
let g:syntastic_cfg_checkers = ['cfg']
let g:syntastic_dosini_checkers = ['dosini']
  • GNU Make:
let g:syntastic_make_checkers = ['gnumake']
  • JSON
let g:syntastic_json_checkers = ['json_tool']
  • Language check in gitcommit/svn (commit prompts):
let g:syntastic_gitcommit_checkers = ['language_check']
let g:syntastic_svn_checkers = ['language_check']
  • proselint in gitcommit (commit prompts):
let g:syntastic_gitcommit_checkers = ['proselint']
  • Python:
" Like Syntastic's pyflakes checker, but treats messages about unused
" variables/imports as warnings rather than errors.
let g:syntastic_python_checkers = ['pyflakes_with_warnings']
  • YAML:
let g:syntastic_yaml_checkers = ['pyyaml']

Hooks

  • Block ZZ if there are syntax errors:
nnoremap ZZ :call syntastic_extras#quit_hook()<cr>

About

Additional Syntastic syntax checkers and features (for Vim)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published