Add numbers to company completions, select with M-[0-9]

This commit is contained in:
Riyyi
2021-01-12 17:41:43 +01:00
parent da71c71839
commit e6fc583bc3
+8 -5
View File
@@ -472,10 +472,6 @@ Autocomplete packages (includes code completion and snippets).
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package company (use-package company
:defer t :defer t
:custom
(company-idle-delay 0.2)
(company-minimum-prefix-length 2)
(company-tooltip-align-annotations 't)
:hook :hook
((c-mode-common ((c-mode-common
emacs-lisp-mode emacs-lisp-mode
@@ -484,7 +480,12 @@ Autocomplete packages (includes code completion and snippets).
php-mode php-mode
shell-mode shell-mode
shell-script-mode) shell-script-mode)
. company-mode)) . company-mode)
:config
(setq company-idle-delay 0.2)
(setq company-minimum-prefix-length 2)
(setq company-show-numbers t)
(setq company-tooltip-align-annotations 't))
(use-package company-prescient (use-package company-prescient
:after company :after company
@@ -521,6 +522,8 @@ On the fly syntax checking.
**** LSP **** LSP
Language Server Protocol.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package lsp-mode (use-package lsp-mode
:commands lsp :commands lsp