diff options
author | Alan Pearce | 2023-06-05 16:46:08 +0200 |
---|---|---|
committer | Alan Pearce | 2023-06-05 16:46:08 +0200 |
commit | c3fc1d1e488906b3aeef4a19300182f556938e1a (patch) | |
tree | e9741e77c833aa0f1f2f473461561ddf84916d2d /user | |
parent | 39036e2edcb30199d4708323912be6b9e08ad2a4 (diff) | |
download | nixfiles-c3fc1d1e488906b3aeef4a19300182f556938e1a.tar.lz nixfiles-c3fc1d1e488906b3aeef4a19300182f556938e1a.tar.zst nixfiles-c3fc1d1e488906b3aeef4a19300182f556938e1a.zip |
Emacs: make code completion menu function more like in neovim
Diffstat (limited to 'user')
-rw-r--r-- | user/emacs/init.el | 11 |
1 files changed, 3 insertions, 8 deletions
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 "<escape>") - (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 "<tab>" #'company-complete-common-or-cycle + "C-j" nil "<M-tab>" #'company-other-backend "<C-tab>" #'company-other-backend "S-TAB" #'company-select-previous |