Fix "Couldn't find project root" error on +ivy/compile
This commit is contained in:
parent
14326d6704
commit
883a109a7a
1 changed files with 5 additions and 1 deletions
|
@ -322,7 +322,11 @@ If ARG (universal argument), include all files, even hidden or compressed ones."
|
||||||
(defun +ivy/compile ()
|
(defun +ivy/compile ()
|
||||||
"Execute a compile command from the current buffer's directory."
|
"Execute a compile command from the current buffer's directory."
|
||||||
(interactive)
|
(interactive)
|
||||||
(counsel-compile default-directory))
|
;; Fix unhelpful 'Couldn't find project root' error
|
||||||
|
(letf! (defun counsel--compile-root ()
|
||||||
|
(ignore-errors
|
||||||
|
(funcall counsel--compile-root)))
|
||||||
|
(counsel-compile default-directory)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +ivy/project-compile ()
|
(defun +ivy/project-compile ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue