featurep! will be renamed modulep! in the future, so it's been deprecated. They have identical interfaces, and can be replaced without issue. featurep! was never quite the right name for this macro. It implied that it had some connection to featurep, which it doesn't (only that it was similar in purpose; still, Doom modules are not features). To undo such implications and be consistent with its namespace (and since we're heading into a storm of breaking changes with the v3 release anyway), now was the best opportunity to begin the transition. |
||
---|---|---|
.. | ||
config.el | ||
doctor.el | ||
packages.el | ||
README.org |
:lang zig
Description unfold
This module adds Zig support, with optional (but recommended) LSP support via zls.
- Syntax highlighting
- Syntax-checking (flycheck)
- Code completion and LSP integration (
zls
)
Maintainers
Module flags
- +lsp
- Enables integration for the zls LSP server. It is highly recommended you use this.
- +tree-sitter
- Leverages tree-sitter for better syntax highlighting and structural text editing. Requires :tools tree-sitter.
Packages
Hacks
No hacks documented for this module.
TODO Changelog
This module does not have a changelog yet.
Installation
Enable this module in your doom!
block.
To get started with Zig, you need the zig
tool. Pre-built binaries for most
systems are available for download from https://ziglang.org/download/ or from
system package managers.
zls
is a language server for Zig, which provides code completion,
TODO Usage
🔨 This module's usage documentation is incomplete. Complete it?
LSP support
This module supports LSP integration. For it to work you'll need:
- zls installed,
- The :tools lsp module enabled. Only lsp-mode is supported for now,
- The +lsp flag on this module enabled.
Keybinds
Binding | Description |
---|---|
<localleader> b | zig-compile |
<localleader> f | zig-format-buffer |
<localleader> r | zig-run |
<localleader> t | zig-test-buffer |
TODO Configuration
🔨 This module's configuration documentation is incomplete. Complete it?
Customize zls path
To customize the path of the zls
executable, modify lsp-zig-zls-executable
:
;; in $DOOMDIR/config.el
(setq lsp-zig-zls-executable "~/path/to/zls")
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?