-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit_company.el
30 lines (25 loc) · 927 Bytes
/
init_company.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
;;; init_company.el --- In-buffer autocompletion tool
;; ==============================================================================
;; Company Set Up
;; ==============================================================================
;; Written by Jeff Russell
;; Updated: 2020-08-21 1132
;; jpowellrussell.com
;; ------------------------------------------------------------------------------
;;; Commentary:
;; Creates drop-downs in-buffer for autocomplete purposes, can be extended with a variety of backends.
;;; Code:
(use-package company
:straight t
:init
(add-hook 'after-init-hook 'global-company-mode)
:bind (:map company-active-map
("M-n" . company-select-next)
("M-p" . company-select-previous))
:config
(setq company-idle-delay 0
company-minimum-prefix-length 2)
(push 'company-capf company-backends)
)
(provide 'init_company)
;;; init_company.el ends here