Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.42 KB | None | 0 0
  1. (defun company-phpactor--get-candidates ()
  2.   "Build a list of candidates with text-properties extracted from phpactor's output."
  3.   (let ((suggestions (company-phpactor--get-suggestions))
  4.         (candidates ()))
  5.     (mapcar
  6.      (lambda (suggestion)
  7.        (setq candidate (plist-get suggestion :name))
  8.        (put-text-property 0 1 'annotation (plist-get suggestion :info) candidate)
  9.        candidate)
  10.      suggestions)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement