g-plane / malva

Configurable, smart and fast CSS, SCSS, Sass and Less formatter with dprint integration.
https://dprint.dev/plugins/malva
MIT License
78 stars 3 forks source link

Support stroustrup code style #20

Closed suchverynice closed 9 hours ago

suchverynice commented 1 day ago

Would you consider adding config option like dprint-plugin-typescript's nextControlFlowPosition for SCSS? Will be much appreciated!

g-plane commented 1 day ago

Sorry, no plans for it.

suchverynice commented 22 hours ago

Yup, I understand...

As I'm not a Rust programmer, could you advise:

  1. Looking through, I believe these are what I need to change, yes?

    // https://github.com/g-plane/malva/blob/main/malva/src/doc_gen/sass.rs#L395
    - iter::once(Doc::space())
    + iter::once(Doc::hard_line())
    
    // https://github.com/g-plane/malva/blob/main/malva/src/doc_gen/sass.rs#L415
    - docs.push(Doc::space());
    + docs.push(Doc::hard_line());
  2. Could you advise how to then compile for use and also integrate with dprint?

Thanks in advance!

g-plane commented 21 hours ago

Actually basic Rust knowledge is required for compiling this project.

suchverynice commented 10 hours ago

ok... if you ever change your mind, it'd be awesome

g-plane commented 9 hours ago

Sorry, no plans for this style.