Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation not in accordance with lang-racket.org #59

Open
tyr898 opened this issue Oct 22, 2020 · 1 comment
Open

Indentation not in accordance with lang-racket.org #59

tyr898 opened this issue Oct 22, 2020 · 1 comment

Comments

@tyr898
Copy link

tyr898 commented Oct 22, 2020

According to the official style guide, the indentation for ifs is that the condition, true-expr and false-expr are aligned on the same column. However, the current behaviour is this:

(define (example num res)
  (if (equal? num res)
    (do something cool)
    (do something else that is cool))
@cwfoo
Copy link

cwfoo commented Mar 27, 2021

This plugin doesn't seem to do any indentation. Indentation seems to be handled by Vim's lisp mode.

There are lots of other quirks in Vim's lisp indentation. For example, cond is indented like this:

(cond ((f? x)
       (do-something))
      (else
        (do-something-else)))

Compare the indentation of (do-something) with the indentation of (do-something-else).

I don't think this plugin is responsible for these quirks, considering that the indent file is nearly empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants