Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myint/syntastic-extras
Additional Syntastic syntax checkers and features (for Vim)
https://github.com/myint/syntastic-extras
linter syntastic vim
Last synced: 2 months ago
JSON representation
Additional Syntastic syntax checkers and features (for Vim)
- Host: GitHub
- URL: https://github.com/myint/syntastic-extras
- Owner: myint
- Created: 2014-02-01T19:16:51.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-10-14T03:03:26.000Z (about 1 year ago)
- Last Synced: 2023-10-15T16:37:01.987Z (about 1 year ago)
- Topics: linter, syntastic, vim
- Language: Vim Script
- Homepage:
- Size: 69.3 KB
- Stars: 30
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
================
syntastic-extras
================.. image:: https://travis-ci.org/myint/syntastic-extras.svg?branch=master
:target: https://travis-ci.org/myint/syntastic-extras
:alt: Build statusAdditional syntax checkers for the Vim plugin Syntastic_.
.. _Syntastic: https://github.com/scrooloose/syntastic
Checkers
========- C:
.. code-block:: vim
" 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++:
.. code-block:: vim
" See above, but replace '.syntastic_c_config' with
" `.syntastic_cpp_config`.
let g:syntastic_cpp_checkers = ['check']- ``cfg``/``dosini``:
.. code-block:: vim
let g:syntastic_cfg_checkers = ['cfg']
let g:syntastic_dosini_checkers = ['dosini']- GNU Make:
.. code-block:: vim
let g:syntastic_make_checkers = ['gnumake']
- JSON
.. code-block:: vim
let g:syntastic_json_checkers = ['json_tool']
- Language check in ``gitcommit``/``svn`` (commit prompts):
.. code-block:: vim
let g:syntastic_gitcommit_checkers = ['language_check']
let g:syntastic_svn_checkers = ['language_check']- ``proselint`` in ``gitcommit`` (commit prompts):
.. code-block:: vim
let g:syntastic_gitcommit_checkers = ['proselint']
- Python:
.. code-block:: vim
" 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:
.. code-block:: vim
let g:syntastic_yaml_checkers = ['pyyaml']
Hooks
=====- Block ``ZZ`` if there are syntax errors:
.. code-block:: vim
nnoremap ZZ :call syntastic_extras#quit_hook()