From 00d16447c5b1a32a27d8bb947bb9289fe6907469 Mon Sep 17 00:00:00 2001 From: Timothy Pidashev Date: Mon, 3 Feb 2025 12:30:37 -0800 Subject: [PATCH] Add workflows; add stylua.toml; add credits --- .github/workflows/doc.yml | 25 +++++++++++++++++++++++++ .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ lua/darkbox.lua | 5 ++++- stylua.toml | 6 ++++++ 4 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/doc.yml create mode 100644 .github/workflows/test.yml create mode 100644 stylua.toml diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml new file mode 100644 index 0000000..a818b2b --- /dev/null +++ b/.github/workflows/doc.yml @@ -0,0 +1,25 @@ +on: + push: + branches: + - main +name: docs + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: panvimdoc + uses: kdheepak/panvimdoc@main + with: + vimdoc: gruvbox.nvim + version: "Neovim >= 0.8.0" + demojify: true + treesitter: true + - name: Push changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "auto-generate vimdoc" + commit_user_name: "github-actions[bot]" + commit_user_email: "github-actions[bot]@users.noreply.github.com" + commit_author: "github-actions[bot] " diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5f5f19e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +--- +on: [push, pull_request] +name: default + +jobs: + stylua: + name: stylua + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: JohnnyMorganz/stylua-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --color always --check lua + + test: + runs-on: ubuntu-latest + strategy: + matrix: + nvim-versions: ["stable", "nightly"] + name: test + steps: + - name: checkout + uses: actions/checkout@v3 + + - uses: rhysd/action-setup-vim@v1 + with: + neovim: true + version: ${{ matrix.nvim-versions }} + + - name: run tests + run: make test + env: + PLENARY_DIR: vendor/plenary.nvim diff --git a/lua/darkbox.lua b/lua/darkbox.lua index c938d0c..46f6475 100644 --- a/lua/darkbox.lua +++ b/lua/darkbox.lua @@ -4,7 +4,10 @@ -- +#+ +:++#++:++#++:+#++:++#: +#++:++ +#++:++#+ +#+ +:+ +#++:+ -- +#+ +#++#+ +#++#+ +#++#+ +#+ +#+ +#++#+ +#+ +#+ +#+ -- #+# #+##+# #+##+# #+##+# #+# #+# #+##+# #+##+# #+# --- ######### ### ###### ###### ############ ######## ### ### +-- ######### ### ###### ###### ############ ######## ### ### +-- +-- INSPIRED BY GRUVBOX (https://github.com/morhetz/gruvbox) +-- Could not have been made possible without the gruvbox.nvim project (https://github.com/ellisonleao/gruvbox.nvim) ---@class Darkbox ---@field config DarkboxConfig diff --git a/stylua.toml b/stylua.toml new file mode 100644 index 0000000..0fd4cb5 --- /dev/null +++ b/stylua.toml @@ -0,0 +1,6 @@ +column_width = 120 +line_endings = "Unix" +indent_type = "Spaces" +indent_width = 2 +quote_style = "AutoPreferDouble" +no_call_parentheses = false