diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml index 639c7e1..b9b143d 100644 --- a/.github/workflows/stylua.yml +++ b/.github/workflows/stylua.yml @@ -4,12 +4,13 @@ jobs: StyLuacheck: runs-on: ubuntu-latest steps: + - name: Install cargo-hack from crates.io + uses: baptiste0928/cargo-install@v3 + with: + crate: stylua + version: 0.20.0 + - name: Checkout uses: actions/checkout@v3 - - name: StyLua check - uses: JohnnyMorganz/stylua-action@v3 - with: - token: ${{ secrets.GH_TOKEN }} - version: v0.18.2 # NOTE: we recommend pinning to a specific version in case of formatting changes - # CLI arguments - args: --check . + - name: Check code formatting + run: stylua -c . diff --git a/lua/presence/plugin_managers.lua b/lua/presence/plugin_managers.lua index c6301eb..6d86cf7 100644 --- a/lua/presence/plugin_managers.lua +++ b/lua/presence/plugin_managers.lua @@ -1,6 +1,6 @@ -- Different plugin manager names return { - ["packer"] = "packer", - ["vim-plug"] = "vim-plug", - ["lazy"] = "lazy", + ["packer"] = "packer", + ["vim-plug"] = "vim-plug", + ["lazy"] = "lazy", }