diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index da5d1c8..59ccd13 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -63,13 +63,26 @@ jobs: with: luaVersion: "5.1" - - name: Checkout plugin repository + # actions/checkout doesn't clone git repos external to github. this is a trick to do so + # https://github.com/actions/checkout/issues/24#issuecomment-1234831235 + # - name: override remote if needed + # if: startWith('https', ${{ matrix.plugin.name }}) + # run: | + # git config --global url.https://git.sr.ht.insteadOf git://github.com/ + + - name: Checkout plugin repository from github + if: ${{ startsWith( matrix.plugin.name, 'https://git.sr.ht') == false }} uses: actions/checkout@v4 with: repository: ${{ matrix.plugin.name }} ref: ${{ matrix.plugin.ref }} path: . + - name: Clone from sr.ht + if: ${{ startsWith(env.REPOSITORY_URL, 'https://git.sr.ht') }} + run: | + git clone ${{ matrix.plugin.ref }} + - run: | echo "GITHUB_REPOSITORY_OVERRIDE=${{ matrix.plugin.name }}" >> $GITHUB_ENV echo "GITHUB_SHA_OVERRIDE=$(git rev-parse HEAD)" >> $GITHUB_ENV @@ -85,7 +98,7 @@ jobs: } >> "$GITHUB_OUTPUT" - name: Publish Development LuaRock - uses: nvim-neorocks/luarocks-tag-release@v7 + uses: nvim-neorocks/luarocks-tag-release@teto-ability-override-url env: LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} with: diff --git a/plugins.json b/plugins.json index 901bd21..fc3eba6 100644 --- a/plugins.json +++ b/plugins.json @@ -7,6 +7,13 @@ "summary": "An interactive and powerful Git interface for Neovim, inspired by Magit", "license": "MIT" }, + { + "name": "https://git.sr.ht/~whynothugo/lsp_lines.nvim", + "shorthand": "lsp_lines.nvim", + "dependencies": [], + "summary": "Renders diagnostics using virtual lines on top of the real line of code.", + "license": "ISC" + }, { "name": "folke/flash.nvim", "shorthand": "flash.nvim",