Skip to content

Commit

Permalink
feat: Add throw_statement to Java significant blocks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
joshuadanpeterson committed Jul 21, 2024
1 parent bbd6e36 commit 9824160
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/typewriter/utils/center_block_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ M.expand = {
["variant_declaration"] = true,
["constructor_name"] = true,
["let_expression"] = true,

-- Java-specific significant blocks
["throw_statement"] = true,
}

--- Get the expansion status for a given node type
Expand Down

0 comments on commit 9824160

Please sign in to comment.