Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update significant node types for centering
- Added a refined list of significant node types across multiple languages (PHP, Lua, Go, Rust, JavaScript, Python, HTML, CSS, Bash, SQL). - The following node types were included for their relevance in centering behavior: - function - method - if_statement - for_loop - while_loop - switch_statement - case_statement - try_statement - catch_clause - finally_clause - do_statement - repeat_statement - function_declaration - class - class_declaration - method_declaration - arrow_function - generator_function - async_function - local_declaration - declaration_list - function_call - Added language-specific significant blocks: - PHP: namespace - Go: package - Rust: match_statement, impl_block, struct, enum, trait, mod - JavaScript: function_expression - Python: except_clause, def - HTML: tag, script, style - CSS: rule, media, keyframes - SQL: select_statement, insert_statement, update_statement, delete_statement, create_statement, alter_statement, drop_statement, begin_statement, commit_statement, rollback_statement. Changes to the `typewriter.commands` functions were reviewed but no modifications were necessary.
- Loading branch information