summaryrefslogtreecommitdiff
path: root/config/evil.el
diff options
context:
space:
mode:
Diffstat (limited to 'config/evil.el')
-rw-r--r--config/evil.el20
1 files changed, 16 insertions, 4 deletions
diff --git a/config/evil.el b/config/evil.el
index 8d745f1..0e40002 100644
--- a/config/evil.el
+++ b/config/evil.el
@@ -8,10 +8,22 @@
(setq evil-want-integration t) ;; Required for evil-collection
(setq evil-undo-system 'undo-redo) ;; Use Emacs 28+ built-in undo-redo
:config
- (evil-mode 1))
-;; Restore Emacs-style C-n/C-p in insert mode for line movement
-;; (define-key evil-insert-state-map (kbd "C-n") 'next-line)
-;; (define-key evil-insert-state-map (kbd "C-p") 'previous-line))
+ (evil-mode 1)
+
+ ;; Cursor shapes per evil state
+ (setq evil-normal-state-cursor 'box
+ evil-motion-state-cursor 'box
+ evil-visual-state-cursor 'box
+ evil-insert-state-cursor 'bar
+ evil-replace-state-cursor 'hbar
+ evil-emacs-state-cursor 'hbar))
+
+;; Terminal cursor shape support (GUI handles it natively)
+(use-package evil-terminal-cursor-changer
+ :if (not (display-graphic-p))
+ :after evil
+ :config
+ (etcc-on))
(use-package evil-collection
:after evil