Well there is
type
Int3 = range[0..7]
Run
but watch out, its size is 1 byte. There is also:
type
Obj = object
a {.bitsize: 3.}: int
b {.bitsize: 5.}: int
Run
Which is Nim's syntax for C's bit fields.
