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

feat(chat): make shift-enter same as ctrl-j

This commit is contained in:
wsdjeg 2022-05-03 23:16:47 +08:00
parent 7b85550ac8
commit 96cdf65b71

View File

@ -200,6 +200,9 @@ function! chat#windows#open() abort
if char ==# "\<S-Space>"
" shift-space should return space in insert mode
let s:c_begin .= ' '
elseif char ==# "\<S-Enter>"
" shift-enter should add new line
let s:c_begin .= "\n"
endif
else
let s:c_begin .= char