feat(emacs/lean-company): "c-u TAB" asks filter for FINDG
This commit is contained in:
parent
ee196bbf1a
commit
c26f39b86e
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ triggers a completion immediately."
|
|||
(lean-server-send-cmd-sync (lean-cmd-wait))
|
||||
(cond
|
||||
((looking-at (rx symbol-start "_"))
|
||||
(setq pattern (read-string "Filter for find declarations (e.g: +intro -and): " "" nil ""))
|
||||
(setq pattern (if current-prefix-arg
|
||||
(read-string "Filter for find declarations (e.g: +intro -and): " "" nil "")
|
||||
""))
|
||||
(lean-server-send-cmd-sync (lean-cmd-findg line-number column-number pattern)
|
||||
(lambda (candidates)
|
||||
(lean-server-debug "executing continuation for FINDG")
|
||||
|
|
Loading…
Reference in a new issue