micahelliott / clojure-docs-peek Goto Github PK
View Code? Open in Web Editor NEWA simple popup to show function and namespace docstrings at point
A simple popup to show function and namespace docstrings at point
Could display as:
clojure.string/split (public)
...
It's trickier to get this info, but available with something like: (cider-interactive-eval "(:private (meta #'some.ns/some-function))")
This is useful just for local functions.
(:import [java.math RoundingMode]
[java.util Locale])
RoundingMode/HALF_EVEN
Both of those have interesting docstring that are not being shown.
When a partial docstring or xrefs or other stats are shown, give a hint on how to find more info. Eg:
Number of references: 4 (use `C-c C-? r` to navigate xrefs)
Slightly annoying to have to call the toggle again to close the peek, when all you should need to do is move point.
Could depend on where in symbol point is. Eg, for str/split
, if on str
do ns popup, if on split
do fn popup.
Some docstrings will be too long to be fully displayed. Should only include a paragraph or two.
Could also rely on markdown/formatting sections and only show the first.
It works with corfu on the first completion, keeping the list of completions, but after moving down to other candidates, toggling cdp stops the corfu completion.
Could have a small stats section showing possibly:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.