JavaHello / spring-boot.nvim

Neovim + Spring Boot LS
Apache License 2.0
16 stars 3 forks source link

Config for java-nvim #1

Closed GustavoJCL closed 1 month ago

GustavoJCL commented 2 months ago

Hi, in the documentation only provides a configuration for integrate with nvim-jdtls, how can it be used with java-nvim

JavaHello commented 2 months ago

I have never used java-nvim. I looked at the code of java-nvim and it seems that the code needs to be modified to support it. https://github.com/nvim-java/nvim-java-core/blob/main/lua/java-core/ls/servers/jdtls/plugins.lua#L8

JavaHello commented 1 month ago

Hi, in the documentation only provides a configuration for integrate with nvim-jdtls, how can it be used with java-nvim

require("lspconfig").jdtls.setup {
  init_options = {
    bundles = require("spring_boot").java_extensions(),
  },
}

Try configuring like this

JavaHello commented 1 month ago

done https://github.com/JavaHello/spring-boot.nvim/commit/8d258ebfdcbc1748e40bc94841edc219d87ebe87

s1n7ax commented 2 days ago

Right now, all you have to do is to update nvim-java and spring-boot is installed and setup automatically.