Coder Social home page Coder Social logo

Vertical alignment about zprint HOT 6 CLOSED

radovanne3 avatar radovanne3 commented on August 17, 2024
Vertical alignment

from zprint.

Comments (6)

kkinnear avatar kkinnear commented on August 17, 2024

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.

radovanne3 avatar radovanne3 commented on August 17, 2024

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.

radovanne3 avatar radovanne3 commented on August 17, 2024

My goal is to enable zprint inside null-ls neovim plugin and to set it up so it justifies.

from zprint.

radovanne3 avatar radovanne3 commented on August 17, 2024

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.

kkinnear avatar kkinnear commented on August 17, 2024

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.

radovanne3 avatar radovanne3 commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.