From c3fc1d1e488906b3aeef4a19300182f556938e1a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 5 Jun 2023 16:46:08 +0200 Subject: Emacs: make code completion menu function more like in neovim --- user/emacs/init.el | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'user/emacs') diff --git a/user/emacs/init.el b/user/emacs/init.el index c9482b3f..2f23f924 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -397,9 +397,7 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (setq evil-collection-magit-use-y-for-yank nil) (general-unbind 'normal magit-mode-map "") - (evil-collection-init) - (with-eval-after-load 'company - (company-tng-mode t)))) + (evil-collection-init))) (general-create-definer my-leader-def :keymaps 'override @@ -518,11 +516,7 @@ _p_rev _u_pper _=_: upper/lower _r_esolve company-begin-commands '(self-insert-command) company-insertion-on-trigger #'company-explicit-action-p company-insertion-triggers '(?\ ?\( ?\) ?.)) - (global-company-mode +1) - (general-unbind company-active-map - "C-j" - "RET" - [return])) + (global-company-mode +1)) :general (:states 'insert "TAB" #'company-indent-or-complete-common @@ -530,6 +524,7 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (:keymaps 'company-active-map "TAB" #'company-complete-common-or-cycle "" #'company-complete-common-or-cycle + "C-j" nil "" #'company-other-backend "" #'company-other-backend "S-TAB" #'company-select-previous -- cgit 1.4.1