fix(ada): use gpr-specific modes and indent properly

GNAT Project modes (`gpr-mode` and `gpr-ts-mode`) exist to handle .gpr files.
These modes are now used instead of the Ada major mode.

Lines may need to be re-indented when RET is pressed.  This is to handle cases
of incomplete syntax and ambiguity in what may be entered when an empty line is
initially indented.  Re-indenting after text has been entered corrects
incorrectly guessed initial indentation.  To accommodate this scenario, RET is
remapped to `reindent-then-newline-and-indent`.

Also updates documentation to reflect these changes.
This commit is contained in:
Troy Brown
2025-09-19 00:45:15 -04:00
committed by Henrik Lissner
parent fa6a2607b7
commit 31c43cdceb
3 changed files with 35 additions and 3 deletions

View File

@@ -4,3 +4,6 @@
(package! ada-mode :pin "ce8a2dfebc2b738f32b61dbe2668f7acb885db93")
(when (and (modulep! +tree-sitter) (treesit-available-p))
(package! ada-ts-mode :pin "d0c1c124b236b402b884188948cb1f3502ef8779"))
(package! gpr-mode :pin "03141c6b9a39c31a6e759b594b41617b97b02753")
(when (and (modulep! +tree-sitter) (treesit-available-p))
(package! gpr-ts-mode :pin "b8aeca2c8fd5ed370dad0676da8f380627c916d5"))