diff options
-rw-r--r-- | Emacs.org | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -40,6 +40,7 @@ | |||
40 | - [[#lsp][Lsp]] | 40 | - [[#lsp][Lsp]] |
41 | - [[#python][Python]] | 41 | - [[#python][Python]] |
42 | - [[#dap-mode][Dap mode]] | 42 | - [[#dap-mode][Dap mode]] |
43 | - [[#company][Company]] | ||
43 | - [[#projectile][Projectile]] | 44 | - [[#projectile][Projectile]] |
44 | - [[#keybinds][Keybinds]] | 45 | - [[#keybinds][Keybinds]] |
45 | - [[#magit][Magit]] | 46 | - [[#magit][Magit]] |
@@ -477,6 +478,26 @@ | |||
477 | 478 | ||
478 | #+end_src | 479 | #+end_src |
479 | 480 | ||
481 | ** Company | ||
482 | |||
483 | #+begin_src emacs-lisp | ||
484 | |||
485 | (use-package company | ||
486 | :after lsp-mode | ||
487 | :hook (lsp-mode . company-mode) | ||
488 | :bind (:map company-active-map | ||
489 | ("<tab>" . company-complete-selection)) | ||
490 | (:map lsp-mode-map | ||
491 | ("<tab>" . company-indent-or-complete-common)) | ||
492 | :custom | ||
493 | (company-minimum-prefix-length 1) | ||
494 | (company-idle-delay 0.0)) | ||
495 | |||
496 | (use-package company-box | ||
497 | :hook (company-mode . company-box-mode)) | ||
498 | |||
499 | #+end_src | ||
500 | |||
480 | ** Projectile | 501 | ** Projectile |
481 | 502 | ||
482 | #+begin_src emacs-lisp | 503 | #+begin_src emacs-lisp |