snippets: plumb support for insert vs snippet state.