mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
Fix #559
This commit is contained in:
parent
32c15d5407
commit
cefdc6f9c4
@ -225,6 +225,9 @@ let g:spacevim_checkinstall = 1
|
||||
" <
|
||||
let g:spacevim_enable_debug = 0
|
||||
""
|
||||
" Auto disable touchpad when switch to insert mode or focuslost in neovim.
|
||||
let g:spacevim_auto_disable_touchpad = 1
|
||||
""
|
||||
" Set the debug level of SpaceVim. Default is 1. see
|
||||
" |SpaceVim#logger#setLevel()|
|
||||
let g:spacevim_debug_level = 1
|
||||
|
@ -64,7 +64,7 @@ function! SpaceVim#autocmds#init() abort
|
||||
" set it to the first line when editing a git commit message
|
||||
au FileType gitcommit au! BufEnter COMMIT_EDITMSG call setpos('.', [0, 1, 1, 0])
|
||||
autocmd InsertEnter * call s:fixindentline()
|
||||
if executable('synclient')
|
||||
if executable('synclient') && g:spacevim_auto_disable_touchpad
|
||||
let s:touchpadoff = 0
|
||||
autocmd InsertEnter * call s:disable_touchpad()
|
||||
autocmd InsertLeave * call s:enable_touchpad()
|
||||
|
@ -254,6 +254,9 @@ Enable/Disable debug mode for SpaceVim. Default is 0.
|
||||
let g:spacevim_enable_debug = 1
|
||||
<
|
||||
|
||||
*g:spacevim_auto_disable_touchpad*
|
||||
Auto disable touchpad when switch to insert mode or focuslost in neovim.
|
||||
|
||||
*g:spacevim_debug_level*
|
||||
Set the debug level of SpaceVim. Default is 1. see
|
||||
|SpaceVim#logger#setLevel()|
|
||||
|
Loading…
Reference in New Issue
Block a user