1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-23 12:01:32 +08:00
SpaceVim/autoload/SpaceVim/layers/lang/puppet.vim
Igor Galić 131e1db64e
improve puppet layer by configuration
we move our loader into its own layer, and add configuration the
necessary configuration to disable the standard "errors" about
autoload and class inheritance.
2017-02-12 20:54:46 +01:00

13 lines
533 B
VimL

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