mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +08:00
refactor(python): move python autocmd to lang#python
layer
This commit is contained in:
parent
bed725bead
commit
14a691a8aa
@ -46,7 +46,7 @@ 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 python,coffee call SpaceVim#util#check_if_expand_tab()
|
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()
|
||||||
|
@ -131,11 +131,13 @@ function! SpaceVim#layers#lang#python#config() abort
|
|||||||
" mapping in your vimrc, such as if you do:
|
" mapping in your vimrc, such as if you do:
|
||||||
let g:pydocstring_enable_mapping = 0
|
let g:pydocstring_enable_mapping = 0
|
||||||
|
|
||||||
if g:spacevim_autocomplete_parens
|
augroup spacevim_layer_lang_python
|
||||||
augroup python_delimit
|
autocmd!
|
||||||
|
autocmd FileType python call SpaceVim#util#check_if_expand_tab()
|
||||||
|
if g:spacevim_autocomplete_parens
|
||||||
au FileType python let b:delimitMate_nesting_quotes = ['"', "'"]
|
au FileType python let b:delimitMate_nesting_quotes = ['"', "'"]
|
||||||
augroup end
|
endif
|
||||||
endif
|
augroup END
|
||||||
" }}}
|
" }}}
|
||||||
let g:deoplete#sources#jedi#enable_typeinfo = s:enable_typeinfo
|
let g:deoplete#sources#jedi#enable_typeinfo = s:enable_typeinfo
|
||||||
call SpaceVim#plugins#runner#reg_runner('python',
|
call SpaceVim#plugins#runner#reg_runner('python',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user