update sigil

This commit is contained in:
Thomas G. Lopes
2026-03-04 19:48:46 +00:00
parent a788760593
commit 0c40072aa8
3 changed files with 149 additions and 8 deletions
+14 -1
View File
@@ -30,7 +30,12 @@ go run . <command>
## `config.lua`
```lua
return {
---@class SigilConfig
---@field target table<string, string|boolean>
---@field ignore? string[]
---@type SigilConfig
local config = {
target = {
linux = "~/.config/nvim",
macos = "~/Library/Application Support/nvim",
@@ -38,7 +43,14 @@ return {
windows = false,
default = "~/.config/nvim",
},
ignore = {
"**/.DS_Store",
"**/*.tmp",
"cache/**",
},
}
return config
```
## Spec formats
@@ -53,4 +65,5 @@ return {
- Uses `SIGIL_REPO` env var to override the repo path.
- Conflicts are detected (existing non-symlink files will stop apply).
- `config.ignore` supports gitignore-like globs (`*`, `?`, `**`) relative to each package `files/` directory.
- Prefer `sigil add` over manual edits in `files/`.