Skip to content

Commit 9758a87

Browse files
authored
docs: make mentions of pickers such as fzf more generic (#26)
1 parent 5ae5714 commit 9758a87

2 files changed

Lines changed: 26 additions & 8 deletions

File tree

‎README.md‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
ft = {"java", "yaml", "jproperties"},
2222
dependencies = {
2323
"mfussenegger/nvim-jdtls", -- or nvim-java, nvim-lspconfig
24-
"ibhagwan/fzf-lua", -- 可选
24+
"ibhagwan/fzf-lua", -- 可选,用于符号选择等UI功能。也可以使用其他选择器(例如 telescope.nvim)。
2525
},
2626
---@type bootls.Config
2727
opts = {}
@@ -70,7 +70,16 @@ require("lspconfig").jdtls.setup {
7070
## 使用
7171

7272
- 查找使用了 `Spring` 注解的 `Bean`。
73-
```vim
74-
:FzfLua lsp_live_workspace_symbols
75-
```
73+
此功能利用 LSP 工作区符号。您可以使用您偏好的、支持显示 LSP 工作区符号的模糊查找器。
74+
例如:
75+
- 如果您正在使用 `fzf-lua`:
76+
```vim
77+
:FzfLua lsp_live_workspace_symbols
78+
```
79+
- 如果您正在使用 `telescope.nvim`:
80+
```vim
81+
:lua require'telescope.builtin'.lsp_workspace_symbols{}
82+
```
83+
*(注意:具体命令可能因您选择的选取器及其配置而异。请确保您的选取器已配置为处理 LSP 符号。)*
7684
![lsp_live_workspace_symbols](https://github.com/JavaHello/javahello.github.io/raw/refs/heads/master/content/posts/nvim-lean/images/spring-boot.png)
85+

‎README_en.md‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Adapted from [VSCode Spring Boot](https://marketplace.visualstudio.com/items?ite
2121
ft = {"java", "yaml", "jproperties"},
2222
dependencies = {
2323
"mfussenegger/nvim-jdtls", -- or nvim-java, nvim-lspconfig
24-
"ibhagwan/fzf-lua", -- optional
24+
"ibhagwan/fzf-lua", -- optional, for UI features like symbol picking. Other pickers (e.g., telescope.nvim) can also be used.
2525
},
2626
---@type bootls.Config
2727
opts = {}
@@ -70,7 +70,16 @@ require("lspconfig").jdtls.setup {
7070
## Usage
7171

7272
- Find Beans using Spring annotations:
73-
```vim
74-
:FzfLua lsp_live_workspace_symbols
75-
```
73+
This feature leverages LSP workspace symbols. You can use your preferred fuzzy finder that supports displaying LSP workspace symbols.
74+
For example:
75+
- If you are using `fzf-lua`:
76+
```vim
77+
:FzfLua lsp_live_workspace_symbols
78+
```
79+
- If you are using `telescope.nvim`:
80+
```vim
81+
:lua require'telescope.builtin'.lsp_workspace_symbols{}
82+
```
83+
*(Note: The exact command may vary depending on your chosen picker and its configuration. Ensure your picker is set up to handle LSP symbols.)*
7684
![lsp_live_workspace_symbols](https://github.com/JavaHello/javahello.github.io/raw/refs/heads/master/content/posts/nvim-lean/images/spring-boot.png)
85+

0 commit comments

Comments
 (0)