mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-15 08:09:11 +08:00
Merge remote-tracking branch 'igalic/lang/puppet' into dev
This commit is contained in:
commit
ef6d18e8f7
@ -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…
x
Reference in New Issue
Block a user