1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 23:00:04 +08:00

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.
This commit is contained in:
Igor Galić 2017-01-21 16:50:48 +01:00
parent 0b6007fb19
commit 131e1db64e
No known key found for this signature in database
GPG Key ID: F26655D629981641
3 changed files with 26 additions and 0 deletions

View File

@ -23,6 +23,7 @@ function! SpaceVim#layers#lang#plugins() abort
\ ['lervag/vimtex', { 'on_ft' : 'tex'}],
\ ['vimperator/vimperator.vim', { 'on_ft' : 'vimperator'}],
\ ['voxpupuli/vim-puppet', {'on_ft' : 'puppet'}],
\ ['rust-lang/rust.vim', {'merged' : 1}],
\ ]
return plugins
endfunction

View File

@ -0,0 +1,12 @@
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

View File

@ -32,6 +32,7 @@ CONTENTS *SpaceVim-contents*
10. lang#java.................................|SpaceVim-layer-lang-java|
11. lang#ocaml...............................|SpaceVim-layer-lang-ocaml|
12. lang#php...................................|SpaceVim-layer-lang-php|
12. lang#puppet.............................|SpaceVim-layer-lang-puppet|
13. lang#python.............................|SpaceVim-layer-lang-python|
14. lang#rust.................................|SpaceVim-layer-lang-rust|
15. lang#xml...................................|SpaceVim-layer-lang-xml|
@ -592,6 +593,18 @@ requirement:
Composer Project
<
==============================================================================
LANG#PUPPET *SpaceVim-layer-lang-puppet*
this layer is for Puppet development, and it provides syntax highlighting,
and syntax check.
requirement:
>
Puppet
Puppet Lint
<
==============================================================================
LANG#PYTHON *SpaceVim-layer-lang-python*