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:
parent
0b6007fb19
commit
131e1db64e
@ -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
|
||||
|
12
autoload/SpaceVim/layers/lang/puppet.vim
Normal file
12
autoload/SpaceVim/layers/lang/puppet.vim
Normal 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
|
@ -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*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user