Tags: joshuadanpeterson/typewriter.nvim
Tags
feat(autocommands): Preserve column position when moving between line… …s of different lengths - Implemented logic to preserve the cursor's column position when moving between lines of varying lengths. - Introduced `target_col` to store the desired column position across line movements. - Added checks to ensure the cursor is moved to the end of the line if the new line is shorter than `target_col`. - Ensured `target_col` is updated only when moving within the same line to handle lateral movements correctly. - Accounted for blank lines by setting the cursor to position 0 when moving to shorter lines. - Integrated cursor centering after each movement for improved user experience. This commit addresses the issue where the cursor position was not being preserved correctly when moving between lines of different lengths, especially handling edge cases such as blank lines and shorter lines.
feat: Add throw_statement to Java significant blocks Added `throw_statement` node to the list of significant blocks for Java in the Typewriter.nvim configuration. This ensures that throw statements are centered and highlighted during code navigation for improved readability and code management.
PreviousNext