Company: Add a few movement keys
This commit is contained in:
parent
1bf611be79
commit
ff96b93199
|
@ -31,6 +31,22 @@
|
|||
(require 'evil)
|
||||
|
||||
(defun evil-company-setup ()
|
||||
(define-key company-active-map (kbd "C-j") #'company-select-next-or-abort)
|
||||
(define-key company-active-map (kbd "C-k") #'company-select-previous-or-abort)
|
||||
(define-key company-active-map (kbd "M-j") #'company-select-next)
|
||||
(define-key company-active-map (kbd "M-k") #'company-select-previous)
|
||||
|
||||
(when evil-want-C-u-scroll
|
||||
(define-key company-active-map (kbd "C-u") #'company-previous-page))
|
||||
|
||||
(when evil-want-C-d-scroll
|
||||
(define-key company-active-map (kbd "C-d") #'company-next-page))
|
||||
|
||||
(define-key company-search-map (kbd "C-j") #'company-select-next-or-abort)
|
||||
(define-key company-search-map (kbd "C-k") #'company-select-previous-or-abort)
|
||||
(define-key company-search-map (kbd "M-j") #'company-select-next)
|
||||
(define-key company-search-map (kbd "M-k") #'company-select-previous)
|
||||
|
||||
;; Sets up YCMD like behavior.
|
||||
(company-tng-configure-default))
|
||||
|
||||
|
|
Loading…
Reference in New Issue