mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
refactor(lang#coffeescript): move coffeescript autocmds to layer
This commit is contained in:
parent
7982f054e9
commit
58874d8b21
@ -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 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 cs set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
|
||||||
autocmd Filetype qf setlocal nobuflisted
|
autocmd Filetype qf setlocal nobuflisted
|
||||||
autocmd FileType coffee call SpaceVim#util#check_if_expand_tab()
|
|
||||||
au StdinReadPost * call s:disable_welcome()
|
au StdinReadPost * call s:disable_welcome()
|
||||||
if !has('nvim-0.5.0')
|
if !has('nvim-0.5.0')
|
||||||
autocmd InsertEnter * call s:fixindentline()
|
autocmd InsertEnter * call s:fixindentline()
|
||||||
|
@ -59,6 +59,11 @@ function! SpaceVim#layers#lang#coffeescript#config() abort
|
|||||||
call SpaceVim#plugins#repl#reg('coffee', [s:coffee_interpreter, '-i'])
|
call SpaceVim#plugins#repl#reg('coffee', [s:coffee_interpreter, '-i'])
|
||||||
call SpaceVim#mapping#space#regesit_lang_mappings('coffee', function('s:language_specified_mappings'))
|
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
|
endfunction
|
||||||
|
|
||||||
function! s:language_specified_mappings() abort
|
function! s:language_specified_mappings() abort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user