From 9e687c2871f8fd6146b0c5591d65ee61d8374c5e Mon Sep 17 00:00:00 2001 From: Randy Taylor Date: Thu, 23 Jan 2025 11:16:34 -0500 Subject: [PATCH] Fix go-ts-mode type declaration indentation (Bug#75785) * lisp/progmodes/go-ts-mode.el (go-ts-mode--indent-rules): Add rule for type_declaration. --- lisp/progmodes/go-ts-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index 1e948f7785a..cdd6e427db7 100644 --- a/lisp/progmodes/go-ts-mode.el +++ b/lisp/progmodes/go-ts-mode.el @@ -90,6 +90,7 @@ ((parent-is "parameter_list") parent-bol go-ts-mode-indent-offset) ((parent-is "select_statement") parent-bol 0) ((parent-is "type_case") parent-bol go-ts-mode-indent-offset) + ((parent-is "type_declaration") parent-bol go-ts-mode-indent-offset) ((parent-is "type_spec") parent-bol go-ts-mode-indent-offset) ((parent-is "type_switch_statement") parent-bol 0) ((parent-is "var_declaration") parent-bol go-ts-mode-indent-offset) -- 2.30.2