Important
lua/crates/config/types.lua
is automatically generated.
To update it:
- Edit the schema in
lua/crates/config/init.lua
- Generate it by running
make types
┌─────────┐
│ Toml │
│ Parsing │
└────┬────┘
├───────────────┐
▼ ▼
┌────────────┐ ┌─────────────┐ ┌────────┐
│ Fetch │ │ Offline │ │ Ui │
│ Crate Data │ │ Diagnostics ├──▶│ Update │
└─────┬──────┘ └─────────────┘ └────────┘
│
▼
┌─────────────┐ ┌────────┐
│ Crate │ │ Ui │
│ Diagnostics ├──▶│ Update │
└─────────────┘ └────────┘
- plenary.nvim
- Placed inside the root of this repository
There are currently only a few tests. Execute them by running this command:
make test
Important
Do not edit the README.md
, doc/crates.txt
or wiki files.
They are automatically generated.
To update them:
- Edit the files in
docgen/templates
ordocgen/shared
- Optionally run
make doc
or let github actions do it
The generation finds placeholders inside the templates and uses either
some custom generation logic, or a file inside docgen/shared/*
as a replacement.
For example
<SHARED:DEFAULT_CONFIGURATION>
would be replaced by the generated default configuration, but
<SHARED:keymaps.lua>
is replaced by the contents of the docgen/shared/keymaps.lua
file.
The indentation of the placeholder has to be a multiple of 4 spaces
and will be applied to the replacement file.