mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-22 19:51:32 +08:00
33 lines
1.1 KiB
VimL
33 lines
1.1 KiB
VimL
"=============================================================================
|
|
" puppet.vim --- SpaceVim lang#puppet layer
|
|
" Copyright (c) 2016-2017 Wang Shidong & Contributors
|
|
" Author: Wang Shidong < wsdjeg at 163.com >
|
|
" URL: https://spacevim.org
|
|
" License: GPLv3
|
|
"=============================================================================
|
|
|
|
""
|
|
" @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
|