mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 15:19:12 +08:00
refactor(lang#puppet): move autocmd to lang#puppet layer
This commit is contained in:
parent
b0b738e4fa
commit
99d1035c6d
@ -26,7 +26,6 @@ function! SpaceVim#autocmds#init() abort
|
||||
autocmd BufEnter,WinEnter * if &nu | set rnu | endif
|
||||
autocmd BufLeave,WinLeave * if &nu | set nornu | endif
|
||||
endif
|
||||
autocmd BufRead,BufNewFile *.pp setfiletype puppet
|
||||
if g:spacevim_enable_cursorline == 1
|
||||
autocmd BufEnter,WinEnter,InsertLeave * call s:enable_cursorline()
|
||||
autocmd BufLeave,WinLeave,InsertEnter * call s:disable_cursorline()
|
||||
|
@ -28,6 +28,10 @@ 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'] }
|
||||
augroup spacevim_layer_lang_puppet
|
||||
autocmd!
|
||||
autocmd BufRead,BufNewFile *.pp setfiletype puppet
|
||||
augroup END
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#lang#puppet#health() abort
|
||||
|
Loading…
x
Reference in New Issue
Block a user