Rebind RET rather than remapping newline
The remapping was global, preventing its use in insert mode anywhere. Binding to RET is less destructive.
This commit is contained in:
parent
b33b5ed624
commit
fe3a73c118
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
:nmvo doom-localleader-key nil
|
:nmvo doom-localleader-key nil
|
||||||
|
|
||||||
;; Swap RET/C-j in insert mode
|
;; Swap RET/C-j in insert mode
|
||||||
:i [remap newline] #'newline-and-indent
|
:gi "RET" #'newline-and-indent
|
||||||
:i "C-j" #'+default/newline
|
:i "C-j" #'+default/newline
|
||||||
|
|
||||||
;; --- Global keybindings ---------------------------
|
;; --- Global keybindings ---------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue