From 58f021b3f3e544e75d63f5c98541980592a14b44 Mon Sep 17 00:00:00 2001 From: thanhvg Date: Fri, 15 Jul 2022 14:26:09 -0600 Subject: [PATCH] [compleseus] work with tramp (#15639) make tramp completion work and layout recognize remote project. --- layers/+completion/compleseus/packages.el | 2 +- layers/+spacemacs/spacemacs-layouts/funcs.el | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/layers/+completion/compleseus/packages.el b/layers/+completion/compleseus/packages.el index 9654a2916..0c45b0c1e 100644 --- a/layers/+completion/compleseus/packages.el +++ b/layers/+completion/compleseus/packages.el @@ -302,7 +302,7 @@ ;; (setq completion-styles '(basic partial-completion orderless) (setq completion-styles '(orderless) completion-category-defaults nil - completion-category-overrides '((file (styles . (partial-completion))))))) + completion-category-overrides '((file (styles basic partial-completion)))))) (defun compleseus/init-selectrum () (use-package selectrum diff --git a/layers/+spacemacs/spacemacs-layouts/funcs.el b/layers/+spacemacs/spacemacs-layouts/funcs.el index 9754a5e3a..ed7501b70 100644 --- a/layers/+spacemacs/spacemacs-layouts/funcs.el +++ b/layers/+spacemacs/spacemacs-layouts/funcs.el @@ -974,7 +974,9 @@ containing the buffer." nil)) (project (completing-read "Switch to Project Perspective: " - projectile-known-projects + (if current-project-maybe + (cons current-project-maybe projectile-known-projects) + projectile-known-projects) nil nil nil