forked from catppuccin/nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'catppuccin:main' into main
- Loading branch information
Showing
128 changed files
with
4,994 additions
and
2,254 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Question | ||
url: https://discord.com/invite/r6Mdz5dpFc | ||
about: Join our discord server for real-time answer and more! | ||
url: https://discord.com/servers/catppuccin-907385605422448742 | ||
about: Join our discord server for real-time answers and more! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
🎉 First off, thanks for taking the time to contribute! 🎉 Here are some guidelines from us: | ||
🎉 First off, thanks for taking the time to contribute! 🎉 | ||
|
||
Here are some guidelines: | ||
- Format code using [stylua](https://github.com/johnnymorganz/stylua). | ||
- New plugin integration should be added in [alphabetical order](https://github.com/catppuccin/nvim#integrations) | ||
- Recommendation: | ||
- Create a topic branch on your fork for your specific PR. | ||
- Consider using [conventionalcommits.org's](https://www.conventionalcommits.org/en/v1.0.0/) rules for creating explicit and meaningful commit messages. | ||
- If it's your first time contributing to a project then read [About pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) on Github's docs. | ||
- New plugin integration should be added in alphabetical order: | ||
- to the [README](https://github.com/catppuccin/nvim#integrations) (vimdoc is auto-generated). | ||
- to [types.lua](https://github.com/catppuccin/nvim/blob/main/lua/catppuccin/types.lua) | ||
- to [vim.yml](https://github.com/catppuccin/nvim/blob/main/vim.yml) | ||
- Create a topic branch on your fork for your specific PR. | ||
- Use [conventionalcommits.org's](https://www.conventionalcommits.org/en/v1.0.0/) | ||
rules for explicit and meaningful commit messages. | ||
- If it's your first time contributing to a project, then read | ||
[About pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) | ||
on Github's docs. | ||
|
||
Here are some tips: | ||
- Use `vim.g.catppuccin_debug = true` to get live config re-loading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
name: stylua | ||
on: [push, pull_request] | ||
name: StyLua | ||
on: | ||
pull_request: | ||
push: | ||
paths-ignore: | ||
- "*.md" | ||
branches: | ||
- main | ||
|
||
jobs: | ||
stylua: | ||
name: StyLua | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: JohnnyMorganz/stylua-action@v1.1.1 | ||
- uses: actions/checkout@v3 | ||
- uses: JohnnyMorganz/stylua-action@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
version: latest | ||
args: --check --config-path=stylua.toml . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
name: Neovim | ||
on: | ||
pull_request: | ||
push: | ||
paths-ignore: | ||
- "*.md" | ||
branches: | ||
- main | ||
|
||
jobs: | ||
ubuntu: | ||
name: Ubuntu | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Neovim | ||
uses: MunifTanjim/setup-neovim-action@v1 | ||
with: | ||
tag: nightly | ||
- name: Run neovim | ||
run: | | ||
nvim --version | ||
nvim --headless -u tests/init.lua +q | ||
macos: | ||
name: Macos | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Neovim | ||
run: | | ||
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz | ||
xattr -c ./nvim-macos.tar.gz | ||
tar xzvf nvim-macos.tar.gz &> /dev/null | ||
ln -s $(pwd)/nvim-macos/bin/nvim /usr/local/bin/nvim | ||
- name: Run neovim | ||
run: | | ||
nvim --version | ||
nvim --headless -u tests/init.lua +q | ||
windows: | ||
name: Windows | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Neovim | ||
run: | | ||
C:\msys64\usr\bin\wget.exe -q https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip | ||
7z x nvim-win64.zip | ||
Add-Content $env:GITHUB_PATH ".\nvim-win64\bin\" | ||
- name: Run neovim | ||
run: | | ||
nvim --version | ||
nvim --headless -u tests/init.lua +q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Palette | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' # Run every day at midnight UTC | ||
|
||
jobs: | ||
createPullRequest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Make changes to pull request | ||
run: | | ||
curl -o /tmp/palette.json https://raw.githubusercontent.com/catppuccin/palette/main/palette.json | ||
python -c "import json | ||
data = json.load(open('/tmp/palette.json')) | ||
for flavour in data: | ||
with open('lua/catppuccin/palettes/{flavour}.lua'.format(flavour = flavour), 'w') as f: | ||
f.write('return {\n') | ||
for accent in data[flavour]: f.write('\t{accent} = \"{hex}\",\n'.format(accent = accent, hex = data[flavour][accent]['hex'])) | ||
f.write('}\n')" | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: 'feat: auto-sync upstream palettes' | ||
committer: GitHub <noreply@github.com> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: new-palettes | ||
delete-branch: true | ||
title: 'feat: auto-sync upstream palettes' | ||
body: | | ||
Auto-update `lua/catppuccin/palettes/` based on https://github.com/catppuccin/palette/blob/main/palette.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
name: release | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
id: release | ||
with: | ||
release-type: simple | ||
package-name: catppuccin | ||
- uses: actions/checkout@v3 | ||
- name: tag stable versions | ||
if: ${{ steps.release.outputs.release_created }} | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email github-actions[bot]@users.noreply.github.com | ||
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git" | ||
git tag -d stable || true | ||
git push origin :stable || true | ||
git tag -a stable -m "Last Stable Release" | ||
git push origin stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Selene | ||
on: | ||
pull_request: | ||
push: | ||
paths-ignore: | ||
- "*.md" | ||
branches: | ||
- main | ||
|
||
jobs: | ||
selene: | ||
name: Selene | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Run selene | ||
uses: NTBBloodbath/selene-action@v1.0.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --display-style=quiet . |
Oops, something went wrong.