René's URL Explorer Experiment


Title: Feature: opt-in gate on Spring Boot project detection before starting LSP · Issue #30 · JavaHello/spring-boot.nvim · GitHub

Open Graph Title: Feature: opt-in gate on Spring Boot project detection before starting LSP · Issue #30 · JavaHello/spring-boot.nvim

X Title: Feature: opt-in gate on Spring Boot project detection before starting LSP · Issue #30 · JavaHello/spring-boot.nvim

Description: Use case I work in a polyglot Java environment where some projects are Spring Boot, many are Jersey / plain libraries, and others are mixed-language repos that happen to have a few .java and .yaml files. spring-boot.nvim's current behavi...

Open Graph Description: Use case I work in a polyglot Java environment where some projects are Spring Boot, many are Jersey / plain libraries, and others are mixed-language repos that happen to have a few .java and .yaml ...

X Description: Use case I work in a polyglot Java environment where some projects are Spring Boot, many are Jersey / plain libraries, and others are mixed-language repos that happen to have a few .java and .yaml ...

Opengraph URL: https://github.com/JavaHello/spring-boot.nvim/issues/30

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature: opt-in gate on Spring Boot project detection before starting LSP","articleBody":"## Use case\n\nI work in a polyglot Java environment where some projects are Spring Boot,\nmany are Jersey / plain libraries, and others are mixed-language repos\nthat happen to have a few `.java` and `.yaml` files. spring-boot.nvim's\ncurrent behaviour is to start the (fairly heavy) Spring Boot LSP for\n**every** `java` and `yaml` buffer, regardless of whether the project\nactually uses Spring Boot.\n\nFor Spring-only environments this is fine. For polyglot setups it's\nexpensive — booting a JVM-based language server you'll never use, plus\nthe LSP attaches to unrelated YAML buffers (`docker-compose.yml`,\n`.gitlab-ci.yml`, helm values, etc.).\n\n## Current behaviour\n\nThe plugin registers an autocmd (group `spring_boot_ls`) that\nunconditionally starts the Spring Boot LSP on `BufRead` / `BufNewFile` of\n`java` and `yaml` filetypes.\n\n## Proposed behaviour (opt-in)\n\nA `setup({ ... })` option such as:\n\n```lua\nrequire('spring-boot.nvim').setup({\n  -- default false (current behaviour preserved)\n  require_spring_boot_project = true,\n})\n```\n\nWhen `true`, before starting the LSP, walk up from the buffer's path\nlooking for `pom.xml` / `build.gradle[.kts]`, then grep that file for\n`spring-boot`. Only start the LSP if found.\n\nThe existing default stays unchanged, so this is non-breaking.\n\n## Prototype\n\nI'm already using a local wrapper that does exactly this — it overrides\nthe `spring_boot_ls` autocmd group with a gated version. Sketch:\n\n```lua\nlocal function is_spring_project(bufnr)\n  local root = vim.fs.root(bufnr or 0, {\n    'pom.xml', 'build.gradle', 'build.gradle.kts',\n    'settings.gradle', 'settings.gradle.kts',\n  })\n  if not root then return false end\n  for _, fname in ipairs({ 'pom.xml', 'build.gradle', 'build.gradle.kts' }) do\n    local p = root .. '/' .. fname\n    if vim.fn.filereadable(p) == 1 then\n      for _, line in ipairs(vim.fn.readfile(p, '', 500)) do\n        if line:match('spring%-boot') then return true end\n      end\n    end\n  end\n  return false\nend\n\n-- Replace each existing 'spring_boot_ls' autocmd callback with one that\n-- bails early when is_spring_project(bufnr) is false.\n```\n\nIt works well for me but it's brittle — it depends on your group name\nstaying `spring_boot_ls` and the autocmd shape staying the same. A\nproper opt-in inside the plugin would be more robust and benefit other\npolyglot users.\n\n## Questions\n\n- Would you be open to a PR adding this as an opt-in option?\n- If yes, do you have a preferred name for the option? `require_spring_boot_project`,\n  `gate_on_project_detection`, `auto_detect`, something else?\n- Does the file scan (grep `pom.xml` / `build.gradle` for `spring-boot`)\n  feel right, or would you prefer a stricter check (e.g. dependency\n  resolution via maven-resolver)?\n\nHappy to send a PR once we agree on the shape.\n\n---\n\n🤖 Filed via Claude Code on behalf of @fobbyal","author":{"url":"https://github.com/fobbyal","@type":"Person","name":"fobbyal"},"datePublished":"2026-06-05T04:01:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/30/spring-boot.nvim/issues/30"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e2555a99-dc63-f095-ed05-2e315ce5dece
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAFEE:228F1C:2D279E2:3DCED4C:6A53D0C0
html-safe-nonce302fd9d948e8c9bfa9556a5c7382f131caf52da46f56859cc6da116c392c52ad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkVFOjIyOEYxQzoyRDI3OUUyOjNEQ0VENEM6NkE1M0QwQzAiLCJ2aXNpdG9yX2lkIjoiODI2NTIyNTcwNzQ3MjUzOTg0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdac397423f6dce12d6f448661e61cda185e5c9883149db8e6816c78def7fcc00
hovercard-subject-tagissue:4594056841
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaHello/spring-boot.nvim/30/issue_layout
twitter:imagehttps://opengraph.githubassets.com/092cd3cd8db0514d69aa1a4cca292085e4756e404dcb94630ba7fd436c897aab/JavaHello/spring-boot.nvim/issues/30
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/092cd3cd8db0514d69aa1a4cca292085e4756e404dcb94630ba7fd436c897aab/JavaHello/spring-boot.nvim/issues/30
og:image:altUse case I work in a polyglot Java environment where some projects are Spring Boot, many are Jersey / plain libraries, and others are mixed-language repos that happen to have a few .java and .yaml ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefobbyal
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/JavaHello/spring-boot.nvim git https://github.com/JavaHello/spring-boot.nvim.git
octolytics-dimension-user_id24937965
octolytics-dimension-user_loginJavaHello
octolytics-dimension-repository_id785555003
octolytics-dimension-repository_nwoJavaHello/spring-boot.nvim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id785555003
octolytics-dimension-repository_network_root_nwoJavaHello/spring-boot.nvim
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JavaHello/spring-boot.nvim/issues/30#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaHello%2Fspring-boot.nvim%2Fissues%2F30
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaHello%2Fspring-boot.nvim%2Fissues%2F30
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JavaHello%2Fspring-boot.nvim
Reloadhttps://github.com/JavaHello/spring-boot.nvim/issues/30
Reloadhttps://github.com/JavaHello/spring-boot.nvim/issues/30
Reloadhttps://github.com/JavaHello/spring-boot.nvim/issues/30
JavaHello https://github.com/JavaHello
spring-boot.nvimhttps://github.com/JavaHello/spring-boot.nvim
Please reload this pagehttps://github.com/JavaHello/spring-boot.nvim/issues/30
Notifications https://github.com/login?return_to=%2FJavaHello%2Fspring-boot.nvim
Fork 15 https://github.com/login?return_to=%2FJavaHello%2Fspring-boot.nvim
Star 88 https://github.com/login?return_to=%2FJavaHello%2Fspring-boot.nvim
Code https://github.com/JavaHello/spring-boot.nvim
Issues 3 https://github.com/JavaHello/spring-boot.nvim/issues
Pull requests 0 https://github.com/JavaHello/spring-boot.nvim/pulls
Actions https://github.com/JavaHello/spring-boot.nvim/actions
Projects https://github.com/JavaHello/spring-boot.nvim/projects
Security and quality 0 https://github.com/JavaHello/spring-boot.nvim/security
Insights https://github.com/JavaHello/spring-boot.nvim/pulse
Code https://github.com/JavaHello/spring-boot.nvim
Issues https://github.com/JavaHello/spring-boot.nvim/issues
Pull requests https://github.com/JavaHello/spring-boot.nvim/pulls
Actions https://github.com/JavaHello/spring-boot.nvim/actions
Projects https://github.com/JavaHello/spring-boot.nvim/projects
Security and quality https://github.com/JavaHello/spring-boot.nvim/security
Insights https://github.com/JavaHello/spring-boot.nvim/pulse
Feature: opt-in gate on Spring Boot project detection before starting LSPhttps://github.com/JavaHello/spring-boot.nvim/issues/30#top
https://github.com/fobbyal
fobbyalhttps://github.com/fobbyal
on Jun 5, 2026https://github.com/JavaHello/spring-boot.nvim/issues/30#issue-4594056841
@fobbyalhttps://github.com/fobbyal
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.