fix(CI): CI bug fixed | docs: Added charity contribution link (#532)

* fix: Fix stylua CI formatter | add charity link

Update format.yml

* chore: format with stylua

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Ashin Antony 2021-10-04 10:11:57 +05:30 committed by GitHub
parent 6fb97be55c
commit 7d5a15f7ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 12 deletions

3
.github/README.md vendored
View file

@ -27,7 +27,7 @@
src="https://img.shields.io/github/repo-size/siduck76/NvChad?style=flat-square&label=Repo" src="https://img.shields.io/github/repo-size/siduck76/NvChad?style=flat-square&label=Repo"
alt="GitHub repository size" alt="GitHub repository size"
/></a> /></a>
<a href="https://github.com/siduck76/NvChad/blob/main/LICENSE" <a href="https://github.com/siduck76/NvChad/blob/main/LICENSE"
><img ><img
src="https://img.shields.io/github/license/siduck76/NvChad?style=flat-square&logo=GNU&label=License" src="https://img.shields.io/github/license/siduck76/NvChad?style=flat-square&logo=GNU&label=License"
alt="License" alt="License"
@ -181,3 +181,4 @@ I would happily accept donations but would feel awful since I'm not the only one
- https://www.gofundme.com/f/Burundi-Nutrition - https://www.gofundme.com/f/Burundi-Nutrition
- https://charity.gofundme.com/o/en/campaign/feedingyemen - https://charity.gofundme.com/o/en/campaign/feedingyemen
- https://www.gofundme.com/f/6p8ea-give-ghanaian-orphans-the-gift-of-a-ride-to-school - https://www.gofundme.com/f/6p8ea-give-ghanaian-orphans-the-gift-of-a-ride-to-school
- https://www.isupportmyanmar.com

View file

@ -1,6 +1,9 @@
name: format name: formatting
on: on:
push: push:
paths-ignore:
- ".github/**"
- "*.md"
branches: "**" branches: "**"
jobs: jobs:
@ -8,20 +11,18 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup and run stylua - uses: JohnnyMorganz/stylua-action@1.0.0
uses: JohnnyMorganz/stylua-action@1.0.0
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
args: --config-path=./.stylua.toml -g *.lua -g !lua/core/**/*.lua -g !lua/modules/**/*.lua -g !lua/utils/*.lua -- . args: --config-path=./.stylua.toml -g *.lua -g !lua/core/*.lua -g !lua/plugins/**/*.lua -g !lua/colors/*.lua -- .
- name: Commit files - name: Commit files
run: | run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]" git config --local user.name "github-actions[bot]"
if [[ ! -z $(git status -s) ]]; then if ! [[ -z $(git status -s) ]]; then
git add . git commit --all -m "chore: format with stylua" init.lua lua/**
git commit -m "chore: format source code"
fi fi
- name: Push formatted files - name: Push changes
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}

View file

@ -11,9 +11,6 @@ vim.cmd [[ au TermOpen term://* setlocal nonumber norelativenumber | setfiletype
-- Don't show status line on certain windows -- Don't show status line on certain windows
vim.cmd [[ autocmd BufEnter,BufWinEnter,FileType,WinEnter * lua require("core.utils").hide_statusline() ]] vim.cmd [[ autocmd BufEnter,BufWinEnter,FileType,WinEnter * lua require("core.utils").hide_statusline() ]]
--auto close file exploer when quiting incase a single buffer is left
-- vim.cmd([[ autocmd BufEnter * if (winnr("$") == 1 && &filetype == 'nvimtree') | q | endif ]])
-- Open a file from its last left off position -- Open a file from its last left off position
-- vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]] -- vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]]
-- File extension specific tabbing -- File extension specific tabbing