emacs-lsp/lsp-haskell@3249cde75f -> emacs-lsp/lsp-haskell@918ffa2516 emacsorphanage/helm-css-scss@48b996f73a -> emacsorphanage/helm-css-scss@2169d83d8f ethereum/emacs-solidity@ddb4a901c3 -> ethereum/emacs-solidity@8ba549e429 fsharp/emacs-fsharp-mode@09fec6c91f -> fsharp/emacs-fsharp-mode@b4d31c3da0 fxbois/web-mode@df97ab62c9 -> fxbois/web-mode@57856ba64b haskell/haskell-mode@a34ccdc54b -> haskell/haskell-mode@3e146c1a89 immerrr/lua-mode@ad639c62e3 -> immerrr/lua-mode@7eb8eaa420 jcollard/elm-mode@5797500d74 -> jcollard/elm-mode@699841865e leanprover/lean-mode@362bc6fa3e -> leanprover/lean-mode@99d6a34dc5 nex3/haml-mode@bf5b6c11b1 -> nex3/haml-mode@fe83c65c1f purescript-emacs/emacs-psci@95fb5d1403 -> purescript-emacs/emacs-psci@9bb6a32532 purescript-emacs/purescript-mode@cf113871f9 -> purescript-emacs/purescript-mode@eacc61aaaf technomancy/fennel-mode@52da9715b0 -> technomancy/fennel-mode@8f721285e1 ziglang/zig-mode@9c5e41d6a0 -> ziglang/zig-mode@079149a19f Close: #7344
:lang zig
Description unfold
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
)
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 doom-module::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 doom-module::tools lsp module enabled. Only doom-package:lsp-mode is supported for now,
- The doom-module:+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?