wlangstroth / vim-racket

vim bundle for Racket
MIT License
233 stars 61 forks source link

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

Open tyr898 opened 3 years ago

tyr898 commented 3 years ago

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 commented 3 years ago

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.