mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-24 16:30:58 -05:00
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.
2.4 KiB
2.4 KiB
:lang ada
Description unfold
This module adds support for the Ada and SPARK programming languages.
- Syntax highlighting (optionally via tree-sitter)
- Code completion (via company or corfu)
- LSP support (with ada_language_server)
- Alire integration (alr build, alr run, alr clean)
Maintainers
This module needs a maintainer. Become a maintainer?
Module flags
- +lsp
-
Enable LSP support for
ada-mode
/ada-ts-mode
,gpr-mode
/gpr-ts-mode
. Requires doom-module::tools lsp and a langserver (supports ada_language_server). - +tree-sitter
- Leverages tree-sitter for better syntax highlighting and structural text editing. Requires doom-module::tools tree-sitter and Emacs 29.1+.
Packages
Hacks
ada-ts-mode
has been advised not to settreesit-language-source-alist
andeglot-server-programs
buffer-locally, because this overrides global settings (by the user or Doom modules) in a non-standard way.
TODO Changelog
This module does not have a changelog yet.
Installation
Enable this module in your doom!
block.
No installation steps have been documented. Document them?
Usage
This module has no usage documentation yet. Write some?
TODO Configuration
This module has no configuration documentation yet. Write some?
Troubleshooting
There are no known problems with this module. Report one?
Frequently asked questions
This module has no FAQs yet. Ask one?
TODO Appendix
This module has no appendix yet. Write one?