Avoid fallback completion if lsp--buffer-deferred
This commit is contained in:
parent
0b67251159
commit
42421a765d
3 changed files with 5 additions and 2 deletions
|
@ -104,7 +104,8 @@ called.")
|
||||||
(add-hook! 'python-mode-local-vars-hook
|
(add-hook! 'python-mode-local-vars-hook
|
||||||
(defun +python-init-anaconda-mode-maybe-h ()
|
(defun +python-init-anaconda-mode-maybe-h ()
|
||||||
"Enable `anaconda-mode' if `lsp-mode' isn't."
|
"Enable `anaconda-mode' if `lsp-mode' isn't."
|
||||||
(unless (bound-and-true-p lsp-mode)
|
(unless (or (bound-and-true-p lsp-mode)
|
||||||
|
(bound-and-true-p lsp--buffer-deferred))
|
||||||
(anaconda-mode +1))))
|
(anaconda-mode +1))))
|
||||||
|
|
||||||
(defun +python-auto-kill-anaconda-processes-h ()
|
(defun +python-auto-kill-anaconda-processes-h ()
|
||||||
|
|
|
@ -40,7 +40,8 @@
|
||||||
(add-hook! 'enh-ruby-mode-hook
|
(add-hook! 'enh-ruby-mode-hook
|
||||||
(defun +ruby-init-robe-mode-maybe-h ()
|
(defun +ruby-init-robe-mode-maybe-h ()
|
||||||
"Start `robe-mode' if `lsp-mode' isn't active."
|
"Start `robe-mode' if `lsp-mode' isn't active."
|
||||||
(unless (bound-and-true-p lsp-mode)
|
(unless (or (bound-and-true-p lsp-mode)
|
||||||
|
(bound-and-true-p lsp--buffer-deferred))
|
||||||
(robe-mode +1))))
|
(robe-mode +1))))
|
||||||
:config
|
:config
|
||||||
(set-repl-handler! 'enh-ruby-mode #'robe-start)
|
(set-repl-handler! 'enh-ruby-mode #'robe-start)
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
(defun +debugger-list-for-dap ()
|
(defun +debugger-list-for-dap ()
|
||||||
(when (and (bound-and-true-p lsp-mode)
|
(when (and (bound-and-true-p lsp-mode)
|
||||||
|
(bound-and-true-p lsp--buffer-deferred)
|
||||||
(require 'dap-mode nil t)
|
(require 'dap-mode nil t)
|
||||||
dap-mode)
|
dap-mode)
|
||||||
(mapcar #'car dap--debug-template-configurations)))
|
(mapcar #'car dap--debug-template-configurations)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue