In normal mode (not input mode), hit space.
a - apply a code action from the LSP (like adding a table of contents).