update sigil
This commit is contained in:
@@ -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/`.
|
||||
|
||||
Reference in New Issue
Block a user