A Nantucket resident accused of killing a fellow house painter after a night of drinking together has pleaded guilty to manslaughter.