Skip to content

Commit

Permalink
update bootstraping
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Jun 1, 2024
1 parent b3ac102 commit 9b4a364
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/panvimdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- uses: kdheepak/panvimdoc@main
with:
vimdoc: pseudometa
vimdoc: "%%plugin-name-short%%"
toc: true
treesitter: true
demojify: true
Expand Down
11 changes: 4 additions & 7 deletions BOOTSTRAP.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@ function replacePlaceholders() {
find . -type f -not -path '*/\.git/*' -not -name ".DS_Store" -exec sed -i '' "s/$1/$2/g" {} \;
}

replacePlaceholders "{{plugin-name}}" "$name"
replacePlaceholders "{{plugin-desc}}" "$desc"
replacePlaceholders "{{year}}" "$year"
replacePlaceholders "{{plugin-name-short}}" "$name_short"

osascript -e 'display notification "" with title "ℹ️ Write permissions for workflows needed."'
open "/~https://github.com/$repo/settings/actions"
replacePlaceholders "%%plugin-name%%" "$name"
replacePlaceholders "%%plugin-desc%%" "$desc"
replacePlaceholders "%%year%%" "$year"
replacePlaceholders "%%plugin-name-short%%" "$name_short"

#───────────────────────────────────────────────────────────────────────────────
# Files
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!-- LTeX: enabled=false -->
# {{plugin-name}}
# %%plugin-name%%
<!-- LTeX: enabled=true -->
<!-- TODO uncomment shields when available in dotfyle.com
<a href="https://dotfyle.com/plugins/chrisgrieser/{{plugin-name}}">
<img alt="badge" src="https://dotfyle.com/plugins/chrisgrieser/{{plugin-name}}/shield"/></a>
<a href="https://dotfyle.com/plugins/chrisgrieser/%%plugin-name%%">
<img alt="badge" src="https://dotfyle.com/plugins/chrisgrieser/%%plugin-name%%/shield"/></a>
-->

{{plugin-desc}}
%%plugin-desc%%

<!-- toc -->

Expand All @@ -27,20 +27,20 @@
```lua
-- lazy.nvim
{
"chrisgrieser/{{plugin-name}}",
"chrisgrieser/%%plugin-name%%",
},

-- packer
use {
"chrisgrieser/{{plugin-name}}",
"chrisgrieser/%%plugin-name%%",
}
```

## Configuration

```lua
-- default settings
require("{{plugin-name-short}}").setup ({
require("%%plugin-name-short%%").setup ({

})
```
Expand Down

0 comments on commit 9b4a364

Please sign in to comment.