diff options
Diffstat (limited to 'lua/plugins/jdtls.lua')
| -rw-r--r-- | lua/plugins/jdtls.lua | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/lua/plugins/jdtls.lua b/lua/plugins/jdtls.lua new file mode 100644 index 0000000..49ab729 --- /dev/null +++ b/lua/plugins/jdtls.lua @@ -0,0 +1,19 @@ +return { +  "mfussenegger/nvim-jdtls", +  optional = true, +  opts = { +    jdtls = function(config) +      if not vim.g.user_is_termux then +        config.cmd = vim.list_extend(vim.deepcopy(config.cmd), { +          "--jvm-arg=-Xms8g", +          "--jvm-arg=-Xmx16g", +        }) +      end +      if LazyVim.has("spring-boot.nvim") then +        config.init_options = config.init_options or {} +        config.init_options.bundles = +          vim.list_extend(vim.deepcopy(config.init_options.bundles or {}), require("spring_boot").java_extensions()) +      end +    end, +  }, +}  | 
