Comments (6)
Maybe? I don't know what you mean by vertical alignment? At some level, all indentation is "vertical alignment", and certainly zprint can do that with several different approaches. zprint will also do "justification" which will align pairs of things in columns.
Perhaps if you give me an example of a function definition and what you would like it to look like, with your desired "vertical alignment", then I can tell you if zprint can do that.
If you are referring to vertical alignment of non-code structures (say at the REPL), zprint can certainly do non-code formatting at the REPL. So if you show me some data structure formatted the way that you would like it to be formatted, I can tell you if zprint can do that for you.
I'm glad to help figure out how to configure zprint to do what you want, and frequently make additions to the code to make it even more configurable to meet peoples needs. I just need to know specifically what you are looking for.
Thanks for asking.
from zprint.
Hey,
Thanks for answer, I managed to find it in documentation.
I was refering to justification.
In let binding I want all values to be aligned.
So in case:
x --------------- "hello"
second-val -- "hello"
(--- reference space since it breaks in preview)
Sorry for my bad descriptions, I am relativly new at this..
And I appreciate your help.
from zprint.
My goal is to enable zprint inside null-ls neovim plugin and to set it up so it justifies.
from zprint.
I managed to get it done!
Keep up with the good work, as far as I know, this is only formatter that enables this kind of vertical alignment!
Thanks!
from zprint.
Sorry I wasn't much help with null-ls neovim, as I don't have any experience with it. But I'm fascinated that you seem to have managed to integrate zprint with null-ls neovim. Any chance you would be willing to share how you did that? I'd like to try it out myself, and if I can replicate what you did, I'd add it to the documentation for zprint. I'm sure others would like to do the same thing. Thanks!
from zprint.
Hey,
Btw I just noticed that I contacted you with two different github accounts...
@ned-at-obrizum is my work related account
I will share with you what I did.
I followed null-ls documentation and set zprint as wanted formatter when clojure client is active.
Then I just added .zprintrc in my home dir and set dictionary with required styles inside per your documentation and it just works haha
I will provide code snippets a little bit later. :D
from zprint.
Related Issues (20)
- Request or help if exists already - `#js` reader syntax in cljs interop HOT 9
- how do I to check or write all files recurisvely in a folder? HOT 1
- Custom Syntax Formatting: Hiccup HOT 10
- "Smart" comment changes feedback HOT 15
- Parinfer compatability HOT 2
- Adding Better Clojure Formatting from Tonsky HOT 8
- Keep unchanged kondo directives HOT 3
- Consider segregating justification domains between blank lines
- Reflection and auto-box warnings - wrt GraalVM HOT 4
- Enforce a space between comment character and comment HOT 1
- Allow finer configuration of how certain Objects get printed HOT 3
- Sorting :require dependencies alphabetically. HOT 24
- Errors encountered when applying multiple styles may not be reported HOT 1
- Meta formatting HOT 4
- Making exceptions for `{:force-nl? true}` in maps when destructuring HOT 5
- Different output of tagged literals in library vs shell HOT 4
- Function to format a whole top-level file that takes code instead of a string? HOT 6
- formatting assoc function similar to cursive HOT 3
- Using `:indent-only?` when formatting Clojure structures doesn't work.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zprint.