1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-23 17:01:34 +08:00
SpaceVim/autoload/SpaceVim/layers/lang/puppet.vim
2017-02-17 00:56:55 -05:00

25 lines
751 B
VimL

""
" @section lang#puppet, layer-lang-puppet
" @parentsection layers
" This layer is for Puppet development. It provides syntax highlighting and
" syntax checking.
"
" Requirements:
" >
" Puppet
" Puppet Lint
" <
function! SpaceVim#layers#lang#puppet#plugins() abort
let plugins = []
call add(plugins, ['voxpupuli/vim-puppet', { 'on_ft' : 'puppet', 'loadconf_before' : 1}])
return plugins
endfunction
function! SpaceVim#layers#lang#puppet#config() abort
let g:syntastic_puppet_checkers = ['puppetlint', 'puppet']
let g:syntastic_puppet_puppetlint_args='--no-autoloader_layout-check --no-class_inherits_from_params_class-check'
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['puppet'] }
endfunction