1
0
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:
wsdjeg 2022-01-13 19:05:05 +08:00
parent b0b738e4fa
commit 99d1035c6d
2 changed files with 4 additions and 1 deletions

View File

@ -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()

View File

@ -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