From 924cf68c2e89a1623cac350c38c5134468440ffc Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 9 Feb 2013 17:49:01 +0000 Subject: [PATCH] add a function to get the active checker names for a filetype --- plugin/syntastic/registry.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/syntastic/registry.vim b/plugin/syntastic/registry.vim index 4065511a..5eeb188d 100644 --- a/plugin/syntastic/registry.vim +++ b/plugin/syntastic/registry.vim @@ -73,6 +73,11 @@ function! g:SyntasticRegistry.getActiveCheckers(filetype) return [] endfunction +function! g:SyntasticRegistry.getActiveCheckerNames(filetype) + let checkers = self.getActiveCheckers(a:filetype) + return join(map(checkers, 'v:val.name()')) +endfunction + function! g:SyntasticRegistry.getChecker(filetype, name) for checker in self.availableCheckersFor(a:filetype) if checker.name() == a:name