-
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(java): Migrate new java pack logic over to astrolsp
- Loading branch information
Showing
22 changed files
with
210 additions
and
90 deletions.
There are no files selected for viewing
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,46 +1,31 @@ | ||
name: CI | ||
|
||
name: AstroNvim | ||
on: | ||
push: | ||
branches: [main] | ||
branches: ["main"] | ||
pull_request: | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: JohnnyMorganz/stylua-action@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
version: latest | ||
# CLI arguments | ||
args: --check . | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: lunarmodules/luacheck@v1 | ||
release: | ||
name: release | ||
|
||
if: ${{ github.ref == 'refs/heads/main' }} | ||
needs: | ||
- style | ||
- lint | ||
scopes: | ||
name: Calculate scopes | ||
runs-on: ubuntu-latest | ||
outputs: | ||
scopes: ${{ steps.get-scopes.outputs.scopes }} | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
id: release | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
release-type: simple | ||
package-name: astrocommunity | ||
- uses: actions/checkout@v3 | ||
- uses: rickstaa/action-create-tag@v1 | ||
if: ${{ steps.release.outputs.release_created }} | ||
with: | ||
tag: stable | ||
message: "Current stable release: ${{ steps.release.outputs.tag_name }}" | ||
tag_exists_error: false | ||
force_push_tag: true | ||
- id: get-scopes | ||
run: | | ||
echo "scopes<<EOF" >> $GITHUB_OUTPUT | ||
find lua/astrocommunity -mindepth 1 -maxdepth 2 -type d -exec basename {} \; >> $GITHUB_OUTPUT | ||
echo "EOF" >> $GITHUB_OUTPUT | ||
CI: | ||
uses: AstroNvim/.github/.github/workflows/plugin_ci.yml@main | ||
secrets: inherit | ||
needs: scopes | ||
with: | ||
plugin_name: ${{ github.event.repository.name }} | ||
is_production: ${{ github.event_name == 'push' }} | ||
docs: false | ||
spellcheck: false | ||
commit_msg: false | ||
pr_title: true | ||
scopes: ${{ needs.scopes.outputs.scopes }} |
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
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
30 changes: 28 additions & 2 deletions
30
lua/astrocommunity/editing-support/auto-save-nvim/init.lua
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,31 @@ | ||
return { | ||
"Pocco81/auto-save.nvim", | ||
-- "Pocco81/auto-save.nvim", | ||
"zoriya/auto-save.nvim", -- HACK: use fork until PR is accepted | ||
event = { "User AstroFile", "InsertEnter" }, | ||
opts = {}, | ||
opts = { | ||
callbacks = { | ||
before_saving = function() | ||
-- save global autoformat status | ||
vim.g.OLD_AUTOFORMAT = vim.g.autoformat_enabled | ||
|
||
vim.g.autoformat_enabled = false | ||
vim.g.OLD_AUTOFORMAT_BUFFERS = {} | ||
-- disable all manually enabled buffers | ||
for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do | ||
if vim.b[bufnr].autoformat_enabled then | ||
table.insert(vim.g.OLD_BUFFER_AUTOFORMATS, bufnr) | ||
vim.b[bufnr].autoformat_enabled = false | ||
end | ||
end | ||
end, | ||
after_saving = function() | ||
-- restore global autoformat status | ||
vim.g.autoformat_enabled = vim.g.OLD_AUTOFORMAT | ||
-- reenable all manually enabled buffers | ||
for _, bufnr in ipairs(vim.g.OLD_AUTOFORMAT_BUFFERS or {}) do | ||
vim.b[bufnr].autoformat_enabled = true | ||
end | ||
end, | ||
}, | ||
}, | ||
} |
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,5 @@ | ||
# yanky.nvim | ||
|
||
Improved Yank and Put functionalities for Neovim. | ||
|
||
**Repository:** <https://github.com/gbprod/yanky.nvim> |
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
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
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
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,7 @@ | ||
# Helm Language Pack | ||
|
||
This plugin pack does the following: | ||
|
||
- Adds `go-template` Treesitter parsers | ||
- Adds `helm-ls` language server | ||
- Adds [vim-helm](https://github.com/towolf/vim-helm) for language specific tools |
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
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,12 @@ | ||
# Scala Language Pack | ||
|
||
Requires: | ||
|
||
- `metals` or `coursier` in your path | ||
|
||
This plugin pack does the following: | ||
|
||
- Adds `scala` treesitter parsers | ||
- Adds `metals` language server | ||
- Adds debugger for scala to `nvim-dap` | ||
- Adds [nvim-metals](https://github.com/scalameta/nvim-metals) for language specific tooling |
5 changes: 5 additions & 0 deletions
5
lua/astrocommunity/programming-language-support/dooku-nvim/README.md
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,5 @@ | ||
# dooku.nvim | ||
|
||
Generate and open your code HTML documentation inside Neovim. | ||
|
||
**Repository:** <https://github.com/Zeioth/dooku.nvim> |
Oops, something went wrong.