blob: d52000efa8f2dd3fef5a581f633d521ef10f41d9 (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
|
(use-package company
:ensure t
:defer t
:init (global-company-mode)
:config
(progn
;; Use Company for completion
(bind-key [remap completion-at-point] #'company-complete company-mode-map)
(setq company-tooltip-align-annotations t
;; Easy navigation to candidates with M-<n>
company-show-numbers t)
(setq company-dabbrev-downcase nil))
(setq company-idle-delay 0)
(setq company-minimum-prefix-length 1)
:diminish company-mode)
(use-package company-quickhelp ; Documentation popups for Company
:ensure t
:defer t
:init (add-hook 'global-company-mode-hook #'company-quickhelp-mode))
(use-package company-go
:ensure t
:defer t
:init
(with-eval-after-load 'company
(add-to-list 'company-backends 'company-go)))
(use-package company-lsp
:ensure t
:commands company-lsp)
(use-package yasnippet
:ensure t
:config
(yas-global-mode 1)
(global-set-key (kbd "C-c y") 'company-yasnippet))
(use-package yasnippet-snippets
:ensure t)
|