[oni-company] Use tab for either completion or indentation
This commit is contained in:
parent
8fb6beda45
commit
244c2797b8
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2021.0727.205633
|
;; Version: 2022.1211.200707
|
||||||
;; Package-Requires: (company oni-prescient company-posframe diminish company-prescient)
|
;; Package-Requires: (company oni-prescient company-posframe diminish company-prescient)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -55,6 +55,8 @@
|
||||||
(setf (car (member 'company-capf company-backends))
|
(setf (car (member 'company-capf company-backends))
|
||||||
'(company-capf :with company-yasnippet)))
|
'(company-capf :with company-yasnippet)))
|
||||||
|
|
||||||
|
(define-key company-mode-map (kbd "TAB") #'company-indent-or-complete-common)
|
||||||
|
|
||||||
(add-hook 'company-completion-started-hook 'oni-company--enable-posframe)
|
(add-hook 'company-completion-started-hook 'oni-company--enable-posframe)
|
||||||
|
|
||||||
(company-prescient-mode)
|
(company-prescient-mode)
|
||||||
|
|
Loading…
Reference in a new issue