1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:40:03 +08:00

refactor(lang#coffeescript): move coffeescript autocmds to layer

This commit is contained in:
wsdjeg 2022-06-12 12:06:52 +08:00
parent 7982f054e9
commit 58874d8b21
2 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,6 @@ function! SpaceVim#autocmds#init() abort
autocmd FileType c,cpp,java,javascript set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
autocmd FileType cs set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
autocmd Filetype qf setlocal nobuflisted
autocmd FileType coffee call SpaceVim#util#check_if_expand_tab()
au StdinReadPost * call s:disable_welcome()
if !has('nvim-0.5.0')
autocmd InsertEnter * call s:fixindentline()

View File

@ -59,6 +59,11 @@ function! SpaceVim#layers#lang#coffeescript#config() abort
call SpaceVim#plugins#repl#reg('coffee', [s:coffee_interpreter, '-i'])
call SpaceVim#mapping#space#regesit_lang_mappings('coffee', function('s:language_specified_mappings'))
augroup spacevim_layer_lang_coffeescript
autocmd!
autocmd FileType coffee call SpaceVim#util#check_if_expand_tab()
augroup END
endfunction
function! s:language_specified_mappings() abort