diff --git a/custom.el b/custom.el index ba31752..804817c 100644 --- a/custom.el +++ b/custom.el @@ -7,9 +7,9 @@ '(custom-enabled-themes '(modus-operandi)) '(eglot-code-action-indications '(eldoc-hint)) '(package-selected-packages - '(cape dumber-jump evil evil-collection exec-path-from-shell fish-mode - jai-mode magit move-text multiple-cursors yaml-mode - yasnippet yasnippet-snippets)) + '(cape dart-mode dumber-jump evil evil-collection exec-path-from-shell + fish-mode jai-mode magit move-text multiple-cursors + undo-tree yaml-mode yasnippet yasnippet-snippets)) '(package-vc-selected-packages '((jai-mode :url "https://github.com/valignatev/jai-mode.git")))) (custom-set-faces @@ -17,4 +17,4 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - ) + '(eglot-inlay-hint-face ((t (:inherit shadow :height 0.8))))) diff --git a/init.el b/init.el index 0aef0c6..8656b71 100644 --- a/init.el +++ b/init.el @@ -50,7 +50,6 @@ use-package-enable-imenu-support t) (electric-pair-mode 1) -(ido-mode 1) (fido-mode 1) (global-completion-preview-mode 1) (tab-bar-mode -1) @@ -84,6 +83,7 @@ (evil-want-C-u-scroll t) (evil-want-Y-yank-to-eol t) (evil-move-beyond-eol t) + (evil-undo-system 'undo-tree) :ensure t :init (setq evil-want-integration t) ;; This is optional since it's already set to t by default. @@ -98,7 +98,8 @@ (evil-global-set-key 'motion (kbd "h") #'help-command) (evil-global-set-key 'motion (kbd "w") evil-window-map) - (evil-global-set-key 'motion (kbd "p") project-prefix-map)) + (evil-global-set-key 'motion (kbd "p") project-prefix-map) + (evil-global-set-key 'visual (kbd "TAB") #'indent-region)) (use-package evil-collection :after evil @@ -123,7 +124,10 @@ :rev :newest)) (use-package magit - :bind ("C-x g" . magit-status)) + :bind ("C-x g" . magit-status) + :config + (when (require 'evil nil 'noerror) + (evil-global-set-key 'normal (kbd "gg") #'magit-status))) (use-package multiple-cursors :custom @@ -167,9 +171,12 @@ dumber-jump-find-rules)) (use-package eglot - :hook (jai-mode . eglot-ensure) + :custom + (eglot-code-action-indicator "*") + :hook ((jai-mode . eglot-ensure) + (dart-mode . eglot-ensure)) :config - (push '(jai-mode "jails" "-jai_path" (concat (getenv "HOME") "/.local/jai/") eglot-server-programs)) + (push `(jai-mode "jails" "-jai_path" ,(concat (getenv "HOME") "/.local/jai/")) eglot-server-programs) (push '(sql-mode "postgres-language-server" "lsp-proxy") eglot-server-programs)) (use-package yaml-mode) @@ -178,6 +185,14 @@ (use-package fish-mode) -(use-package yasnippet) +(use-package yasnippet + :config + (yas-global-mode 1)) (use-package yasnippet-snippets) + +(use-package undo-tree + :config + (global-undo-tree-mode 1)) + +(use-package dart-mode)