First version of use-package
This commit is contained in:
parent
42ff73fdd7
commit
fca83b0b97
15 changed files with 214 additions and 197 deletions
|
|
@ -1,7 +1,17 @@
|
|||
;; Company completion framework configuration
|
||||
(require 'company); Add completion
|
||||
(use-package company
|
||||
:commands (company-indent-or-complete-common company-yasnippet)
|
||||
:requires (yasnippet
|
||||
yasnippet-snippets
|
||||
lsp-mode
|
||||
company-lsp
|
||||
lsp-ui)
|
||||
:ensure t
|
||||
:defer t)
|
||||
|
||||
(global-company-mode 1)
|
||||
(yas-global-mode 1)
|
||||
|
||||
;; Company configuration
|
||||
(setq-default
|
||||
company-minimum-prefix-length 2 ; minimum prefix character number for auto complete.
|
||||
company-idle-delay 0.1
|
||||
|
|
@ -20,17 +30,14 @@
|
|||
;; company-async-timeout 2
|
||||
)
|
||||
|
||||
(global-company-mode 1)
|
||||
(yas-global-mode 1)
|
||||
|
||||
;; Absolute defaults for company mode
|
||||
(setq-default company-backends
|
||||
'((company-files ; files & directory
|
||||
company-keywords ; keywords
|
||||
company-capf
|
||||
)
|
||||
(company-dabbrev company-abbrev)
|
||||
))
|
||||
(setq company-backends
|
||||
'((company-files ; files & directory
|
||||
company-keywords ; keywords
|
||||
company-capf
|
||||
)
|
||||
(company-dabbrev company-abbrev)
|
||||
))
|
||||
|
||||
(setq-default
|
||||
company-lsp-cache-candidates 1 ;; Cache LSP results
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue