Add an option: indent_keys
Move indent func to ft plugin.