Merge pull request #4961 from gagbo/patch-10
Feature-gate :tools lsp company-specific hooks
This commit is contained in:
commit
480f99c207
1 changed files with 8 additions and 7 deletions
|
@ -85,13 +85,14 @@ about it (it will be logged to *Messages* however).")
|
|||
(lsp--info "Could not guess project root."))))
|
||||
#'+lsp-optimization-mode)
|
||||
|
||||
(when (featurep! :completion company)
|
||||
(add-hook! 'lsp-completion-mode-hook
|
||||
(defun +lsp-init-company-backends-h ()
|
||||
(when lsp-completion-mode
|
||||
(set (make-local-variable 'company-backends)
|
||||
(cons +lsp-company-backends
|
||||
(remove +lsp-company-backends
|
||||
(remq 'company-capf company-backends)))))))
|
||||
(remq 'company-capf company-backends))))))))
|
||||
|
||||
(defvar +lsp--deferred-shutdown-timer nil)
|
||||
(defadvice! +lsp-defer-server-shutdown-a (orig-fn &optional restart)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue