This module adds Zig support, with optional (but recommended) LSP support via zls.
- Syntax highlighting
- Syntax-checking (doom-package:flycheck)
- Code completion and LSP integration (
zls
)
- @bnjmnt4n
Become a maintainer?
- +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 doom-module::tools tree-sitter.
- doom-package:zig-mode
No hacks documented for this module.
This module does not have a changelog yet.
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,
This module’s usage documentation is incomplete. Complete it?
This module supports LSP integration. For it to work you’ll need:
- zls installed,
- The doom-module::tools lsp module enabled. Only doom-package:lsp-mode is supported for now,
- The doom-module:+lsp flag on this module enabled.
Binding | Description |
---|---|
<localleader> b | zig-compile |
<localleader> f | zig-format-buffer |
<localleader> r | zig-run |
<localleader> t | zig-test-buffer |
This module’s configuration documentation is incomplete. Complete it?
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")
There are no known problems with this module. Report one?
This module has no FAQs yet. Ask one?
This module has no appendix yet. Write one?