Skip to content

Commit 3ca25e6

Browse files
authored
Use auto-begin for company (#2593)
1 parent bdfee69 commit 3ca25e6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lsp-mode.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5170,12 +5170,13 @@ It will show up only if current point has signature help."
51705170
"Handler for editor.action.triggerSuggest."
51715171
(cond
51725172
((and company-mode
5173-
(fboundp 'company-complete)
5173+
(fboundp 'company-auto-begin)
51745174
(fboundp 'company-post-command))
5175-
(run-at-time nil nil
5175+
(run-at-time 0 nil
51765176
(lambda ()
5177-
(company-complete)
5178-
(company-post-command))))
5177+
(company-auto-begin)
5178+
(let ((this-command 'company-idle-begin))
5179+
(company-post-command)))))
51795180
(t
51805181
(completion-at-point))))
51815182

0 commit comments

Comments
 (0)