Merge pull request #136 from sjl/preview-arglists
Add arglists to the omnicomplete preview window
This commit is contained in:
commit
31eaa4455e
@ -87,8 +87,8 @@ function! fireplace#omnicomplete(findstart, base) abort
|
|||||||
return col('.') - strlen(matchstr(line, '\k\+$')) - 1
|
return col('.') - strlen(matchstr(line, '\k\+$')) - 1
|
||||||
else
|
else
|
||||||
try
|
try
|
||||||
let omnifier = '(fn [[k v]] (let [m (meta v)]' .
|
let omnifier = '(fn [[k v]] (let [{:keys [arglists] :as m} (meta v)]' .
|
||||||
\ ' {:word k :menu (pr-str (:arglists m (symbol ""))) :info (str " " (:doc m)) :kind (if (:arglists m) "f" "v")}))'
|
\ ' {:word k :menu (pr-str (or arglists (symbol ""))) :info (str (when arglists (str arglists "\n")) " " (:doc m)) :kind (if arglists "f" "v")}))'
|
||||||
|
|
||||||
let ns = fireplace#ns()
|
let ns = fireplace#ns()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user