Title: bug: document_symbol only respecting spring-boot client · Issue #447 · nvim-java/nvim-java · GitHub
Open Graph Title: bug: document_symbol only respecting spring-boot client · Issue #447 · nvim-java/nvim-java
X Title: bug: document_symbol only respecting spring-boot client · Issue #447 · nvim-java/nvim-java
Description: Did you check docs and existing issues? I have read all the plugin docs I have searched the existing issues I have searched the existing issues of plugins related to this issue Neovim version (nvim -v) 0.11.5 Operating system/version Win...
Open Graph Description: Did you check docs and existing issues? I have read all the plugin docs I have searched the existing issues I have searched the existing issues of plugins related to this issue Neovim version (nvim...
X Description: Did you check docs and existing issues? I have read all the plugin docs I have searched the existing issues I have searched the existing issues of plugins related to this issue Neovim version (nvim...
Opengraph URL: https://github.com/nvim-java/nvim-java/issues/447
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: document_symbol only respecting spring-boot client","articleBody":"### Did you check docs and existing issues?\n\n- [x] I have read all the plugin docs\n- [x] I have searched the existing issues\n- [x] I have searched the existing issues of plugins related to this issue\n\n### Neovim version (nvim -v)\n\n0.11.5\n\n### Operating system/version\n\nWin11/WSL Ubuntu 24.04\n\n### Describe the bug\n\nUsing current version of this plugin, it looks like document_symbol (via telescope, fzflua or just :lua vim.lsp.buf.document_symbol()) just returns values for the spring-boot client. For a minimal setup I've used the devcontainer init.lua available in this repo.\n\nAll symbols returned are just spring-boot annotations\n\nLazy (should be nvim-java 4.0.1?)\n\n ● nvim-java 21.46ms start\n dir /home/soenke/.local/share/nvim/lazy/nvim-java\n url https://github.com/nvim-java/nvim-java\n branch main\n commit 389ef7c\n readme README.md\n help |nvim-java.txt|\n\n- jdk 21\n- jdtls 1.54.0\n\nWhen setting lsp loglevel to debug, this is the whole output i'm getting:\n\n```\n[DEBUG][2025-12-08 23:25:36] ...m/lsp/client.lua:674 \"LSP[spring-boot]\" \"client.request\" 1 \"textDocument/documentSymbol\" { textDocument = { uri = \"\u003c\u003e.java\" } } \u003cfunction 1\u003e 1\n[DEBUG][2025-12-08 23:25:36] .../vim/lsp/rpc.lua:277 \"rpc.send\" { id = 15, jsonrpc = \"2.0\", method = \"textDocument/documentSymbol\", params = { textDocument = { uri = \"\u003c\u003e.java\" } } }\n[DEBUG][2025-12-08 23:25:36] .../vim/lsp/rpc.lua:391 \"rpc.receive\" { id = 15, jsonrpc = \"2.0\", result = { { kind = 11, location = { range = { [\"end\"] = { character = 15, line = 21 }, start = { character = 0, line = 21 } }, uri = \"\u003c\u003e.java\" }, name = \"@+ '\u003c\u003e' (@RestController \u003c: @Controller, @Component) \u003c\u003eController\" }, { kind = 11, location = { range = { [\"end\"] = { character = 98, line = 37 }, start = { character = 1, line = 36 } }, uri = \"\u003c\u003e.java\" }, name = \"@/** -- POST - Accept: application/\u003c\u003e - Content-Type: application/\u003c\u003e\" }, { kind = 11, location = { range = { [\"end\"] = { character = 42, line = 38 }, start = { character = 30, line = 38 } }, uri = \"\u003c\u003e.java\" }, name = \"@RequestBody\" }, { kind = 11, location = { range = { [\"end\"] = { character = 87, line = 59 }, start = { character = 1, line = 59 } }, uri = \"\u003c\u003e.java\" }, name = \"@/**/{request:.+} -- GET - Content-Type: application/\u003c\u003e\" }, { kind = 11, location = { range = { [\"end\"] = { character = 53, line = 60 }, start = { character = 29, line = 60 } }, uri = \"\u003c\u003er.java\" }, name = '@PathVariable(\"request\")' } } }\n```\n\n\n### Steps To Reproduce\n\n1. use devcontainer config, or add nvim-java as plugin to kickstart nvim\n2. open spring boot object (e.g. petclinic)\n3. open a controller\n4. run `:lua vim.lsp.buf.document_symbol()` (or telescope/fzflua equivalent)\n\n### Expected Behavior\n\nI'd expect seeing symbols returned by jdtls as well, instead of only spring boot annotations.\nI looked for similar issues, and one of them suggested adding more documentSymbol types to jdtls. however, when using jdtls on it's own it returned the expected symbols just fine\n\n\nI am not that familiar with nvim plugins, but if anyone has an idea where the problem lies or what needs to be done, I'd gladly try to work on a PR myself","author":{"url":"https://github.com/soenkekrusche","@type":"Person","name":"soenkekrusche"},"datePublished":"2025-12-08T22:34:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/447/nvim-java/issues/447"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:24e92635-0076-be8a-e59a-ffffb69ae65a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5C4:164B81:1CE9559:2555513:69927CE0 |
| html-safe-nonce | 6b884c8cf29e35d88d4819ccdbc66c0d6d2391c63d9875ba73a7bf137a62cd13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUM0OjE2NEI4MToxQ0U5NTU5OjI1NTU1MTM6Njk5MjdDRTAiLCJ2aXNpdG9yX2lkIjoiNzgzNzg5MTg1NDY3MDY1ODc4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1ca60c1a3789d7495b92ff6eb0472635e3a27ef4e1eb275d93584f2fbec058b3 |
| hovercard-subject-tag | issue:3708271994 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nvim-java/nvim-java/447/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b2aaf46268e6fc21b3e1caff2c3e055e6c24552e2504bd1c681437101316d3d0/nvim-java/nvim-java/issues/447 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b2aaf46268e6fc21b3e1caff2c3e055e6c24552e2504bd1c681437101316d3d0/nvim-java/nvim-java/issues/447 |
| og:image:alt | Did you check docs and existing issues? I have read all the plugin docs I have searched the existing issues I have searched the existing issues of plugins related to this issue Neovim version (nvim... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | soenkekrusche |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/nvim-java/nvim-java git https://github.com/nvim-java/nvim-java.git |
| octolytics-dimension-user_id | 150328080 |
| octolytics-dimension-user_login | nvim-java |
| octolytics-dimension-repository_id | 717003987 |
| octolytics-dimension-repository_nwo | nvim-java/nvim-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 717003987 |
| octolytics-dimension-repository_network_root_nwo | nvim-java/nvim-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width