Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is VS Code compulsory? #5

Open
nithin-mk opened this issue Jun 21, 2024 · 5 comments
Open

Is VS Code compulsory? #5

nithin-mk opened this issue Jun 21, 2024 · 5 comments

Comments

@nithin-mk
Copy link

nithin-mk commented Jun 21, 2024

Is it compulsory to install VScode Spring Boot extension in Visual Studio Code accoording to the README? If I don't have VS Code, would spring-boot.nvim be able to download the required Spring Tools 4 files and work by itself?

@JavaHello
Copy link
Owner

It will not be downloaded automatically. If you do not use vscode, you need to manually download the compiled jar.

@nithin-mk
Copy link
Author

Thank you for your reply. From which website can I download the JAR from - VSCode Marketplace or Spring Tools website?

@JavaHello
Copy link
Owner

You can directly download the vscode spring-boot-tools plugin and unzip it, or download the sts4 project and compile it.

@jonathan-elize
Copy link

jonathan-elize commented Jul 19, 2024

I got around this by using what nvim-java does. The author of nvim-java made a mason regsitry that would get you the jars needed.

In all this is what I did:

  1. I updated my mason.setup call to also use the nvim-java repository as a source:
require("mason").setup({
    registries = {
        "github:mason-org/mason-registry",
        "github:nvim-java/mason-registry",
    },
})
  1. I installed spring-boot-tools through :Mason
  2. I added the bundle of jars to my nvim-jdtls setup accordingly:
local spring_path = require("mason-registry")
    .get_package("spring-boot-tools")
     :get_install_path() .. "/extension/jars/*.jar"
local spring = vim.split(vim.fn.glob(spring_path), "\n", {})
vim.list_extend(bundles, spring)

@nithin-mk
Copy link
Author

@jonathan-elize Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants