fix(emacs/lean-company): import auto-completion for .hlean files
fix #434
This commit is contained in:
parent
a791953705
commit
382bf860fd
1 changed files with 6 additions and 2 deletions
|
@ -10,6 +10,7 @@
|
|||
(require 'dash-functional)
|
||||
(require 'f)
|
||||
(require 's)
|
||||
(require 'lean-util)
|
||||
(require 'lean-tags)
|
||||
(require 'lean-server)
|
||||
|
||||
|
@ -53,8 +54,11 @@
|
|||
|
||||
(defun company-lean--import-candidates-main (root-dir)
|
||||
(when root-dir
|
||||
(let* ((lean-files (f-files root-dir
|
||||
(lambda (file) (equal (f-ext file) "lean"))
|
||||
(let* ((target-ext (pcase (lean-choose-minor-mode-based-on-extension)
|
||||
(`hott "hlean")
|
||||
(`standard "lean")))
|
||||
(lean-files (f-files root-dir
|
||||
(lambda (file) (equal (f-ext file) target-ext))
|
||||
t))
|
||||
;; Relative to project root-dir
|
||||
(lean-files-r (--map (f-relative it root-dir) lean-files))
|
||||
|
|
Loading…
Reference in a new issue