diff --git a/CHANGELOG.md b/CHANGELOG.md index ea8311f9..085abdf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - Don't look for the REPL history file in the user's home directory if one doesn't exist ([#309](https://github.com/anmonteiro/lumo/issues/309)). - Use `tools.reader` with the unicode literal / cljs.core/bit-or warning ([#341](https://github.com/anmonteiro/lumo/issues/341)). - Auto-completion fails with numbers in ns names ([#332](https://github.com/anmonteiro/lumo/issues/332)) +- Add common metadata keys to completion keywords ([#344](https://github.com/anmonteiro/lumo/issues/344)). ### Changes diff --git a/src/cljs/snapshot/lumo/repl.cljs b/src/cljs/snapshot/lumo/repl.cljs index 073b4159..ca51eef0 100644 --- a/src/cljs/snapshot/lumo/repl.cljs +++ b/src/cljs/snapshot/lumo/repl.cljs @@ -1336,10 +1336,13 @@ :clj :cljs :default :else + :private :doc :author :gen-class :keywordize-keys :req :req-un :opt :opt-un - :args :ret :fn])) + :args :ret :fn + :const + :arglists :tag :static :added])) (def ^:private namespace-completion-exclusions (into #{} (map str) diff --git a/src/test/lumo/lumo/repl_tests.cljs b/src/test/lumo/lumo/repl_tests.cljs index 4639f660..4e5f945d 100644 --- a/src/test/lumo/lumo/repl_tests.cljs +++ b/src/test/lumo/lumo/repl_tests.cljs @@ -65,7 +65,7 @@ (is-completion "" (lumo/completion-candidates false nil))) (testing "keyword completions" (is-completion ":" lumo/keyword-completions) - (is-completion ":a" [":args" ":as"]) + (is-completion ":a" [":added" ":arglists" ":args" ":as" ":author"]) (is-completion ":ref" [":refer" ":refer-clojure" ":refer-macros"])) (testing "aliased namespaces completions" (with-redefs [lumo/current-alias-map (fn []