Skip to content

Commit 2c879c0

Browse files
azdanovUzaaft
andauthored
feat(pack): add spring-boot pack (#1534)
* feat(pack): add spring-boot pack * Update README.md * Update lua/astrocommunity/pack/spring-boot/README.md Co-authored-by: Uzair Aftab <[email protected]> * add mason --------- Co-authored-by: Uzair Aftab <[email protected]>
1 parent fb7aeaf commit 2c879c0

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Spring Boot Plugin Pack
2+
3+
This plugin pack integrates the `java` pack with `sprint-boot.nvim` to provide a better OOTB experience with Spring boot.
4+
It utilizes the `spring-tools` https://github.com/spring-projects/spring-tools extension for VS Code under the hood.
5+
6+
**Repository:** <https://github.com/JavaHello/spring-boot.nvim>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---@type LazySpec
2+
return {
3+
{ import = "astrocommunity.pack.java" },
4+
{
5+
"williamboman/mason-lspconfig.nvim",
6+
optional = true,
7+
opts = function(_, opts)
8+
opts.ensure_installed =
9+
require("astrocore").list_insert_unique(opts.ensure_installed, { "vscode-spring-boot-tools" })
10+
end,
11+
},
12+
{
13+
"WhoIsSethDaniel/mason-tool-installer.nvim",
14+
optional = true,
15+
opts = function(_, opts)
16+
local astrocore = require "astrocore"
17+
opts.ensure_installed = astrocore.list_insert_unique(opts.ensure_installed, { "vscode-spring-boot-tools" })
18+
end,
19+
},
20+
{
21+
"JavaHello/spring-boot.nvim",
22+
ft = { "java", "yaml", "jproperties" },
23+
specs = {
24+
{
25+
"mfussenegger/nvim-jdtls",
26+
optional = true,
27+
opts = function(_, opts)
28+
if not opts.init_options then opts.init_options = {} end
29+
if not opts.init_options.bundles then opts.init_options.bundles = {} end
30+
vim.list_extend(opts.init_options.bundles, require("spring_boot").java_extensions())
31+
end,
32+
},
33+
},
34+
opts = {},
35+
},
36+
}

0 commit comments

Comments
 (0)