|
1 | | -*nvim-java.txt* For Neovim >= 0.9.4 Last change: 2024 July 10 |
| 1 | +*nvim-java.txt* For Neovim >= 0.9.4 Last change: 2024 July 12 |
2 | 2 |
|
3 | 3 | ============================================================================== |
4 | 4 | Table of Contents *nvim-java-table-of-contents* |
@@ -61,19 +61,22 @@ HOW TO INSTALL *nvim-java-how-to-install* |
61 | 61 | :small_orange_diamond:details ~ |
62 | 62 |
|
63 | 63 |
|
64 | | -Q & A ~ |
| 64 | +STARTER CONFIGS (RECOMMEND FOR NEWBIES) ~ |
65 | 65 |
|
66 | | -If you face any issues, check our Q & A |
67 | | -<https://github.com/nvim-java/nvim-java/wiki/Q-&-A> wiki to see if that helps |
| 66 | +Following are forks of original repositories pre-configured for java. If you |
| 67 | +don’t know how to get started, use one of the following to get started. |
68 | 68 |
|
| 69 | +- LazyVim <https://github.com/nvim-java/starter-lazyvim> |
| 70 | +- Kickstart <https://github.com/nvim-java/starter-kickstart> |
69 | 71 |
|
70 | | -DISTRIBUTIONS & TEMPLATES ~ |
71 | 72 |
|
72 | | -- Lazyvim <https://github.com/nvim-java/nvim-java/wiki/Lazyvim> |
| 73 | +DISTRIBUTION SPECIFIC INSTRUCTIONS ~ |
| 74 | + |
| 75 | +- LazyVim <https://github.com/nvim-java/nvim-java/wiki/Lazyvim> |
73 | 76 | - Kickstart <https://github.com/nvim-java/nvim-java/wiki/Kickstart> |
74 | 77 |
|
75 | 78 |
|
76 | | -CUSTOM ~ |
| 79 | +CUSTOM CONFIGURATION INSTRUCTIONS ~ |
77 | 80 |
|
78 | 81 | - Install the plugin |
79 | 82 |
|
@@ -144,11 +147,12 @@ PROFILES ~ |
144 | 147 |
|
145 | 148 | REFACTOR ~ |
146 | 149 |
|
147 | | -- `JavaRefactorExtractVariable` - Create a variable from value at cursor |
| 150 | +- `JavaRefactorExtractVariable` - Create a variable from value at cursor/selection |
148 | 151 | - `JavaRefactorExtractVariableAllOccurrence` - Create a variable for all |
149 | | - occurrences from value at cursor |
150 | | -- `JavaRefactorExtractConstant` - Create a constant from the value at cursor |
151 | | -- `JavaRefactorExtractMethod` - Create method from the value at cursor |
| 152 | + occurrences from value at cursor/selection |
| 153 | +- `JavaRefactorExtractConstant` - Create a constant from the value at cursor/selection |
| 154 | +- `JavaRefactorExtractMethod` - Create a method from the value at cursor/selection |
| 155 | +- `JavaRefactorExtractField` - Create a field from the value at cursor/selection |
152 | 156 |
|
153 | 157 |
|
154 | 158 | SETTINGS ~ |
@@ -245,31 +249,37 @@ PROFILES ~ |
245 | 249 |
|
246 | 250 | REFACTOR ~ |
247 | 251 |
|
248 | | -- `extract_variable` - Create a variable from value at cursor |
| 252 | +- `extract_variable` - Create a variable from value at cursor/selection |
249 | 253 |
|
250 | 254 | >lua |
251 | 255 | require('java').refactor.extract_variable() |
252 | 256 | < |
253 | 257 |
|
254 | 258 | - `extract_variable_all_occurrence` - Create a variable for all occurrences from |
255 | | - value at cursor |
| 259 | + value at cursor/selection |
256 | 260 |
|
257 | 261 | >lua |
258 | 262 | require('java').refactor.extract_variable_all_occurrence() |
259 | 263 | < |
260 | 264 |
|
261 | | -- `extract_constant` - Create a constant from the value at cursor |
| 265 | +- `extract_constant` - Create a constant from the value at cursor/selection |
262 | 266 |
|
263 | 267 | >lua |
264 | 268 | require('java').refactor.extract_constant() |
265 | 269 | < |
266 | 270 |
|
267 | | -- `extract_method` - Create method from the value at cursor |
| 271 | +- `extract_method` - Create method from the value at cursor/selection |
268 | 272 |
|
269 | 273 | >lua |
270 | 274 | require('java').refactor.extract_method() |
271 | 275 | < |
272 | 276 |
|
| 277 | +- `extract_field` - Create a field from the value at cursor/selection |
| 278 | + |
| 279 | +>lua |
| 280 | + require('java').refactor.extract_field() |
| 281 | +< |
| 282 | + |
273 | 283 |
|
274 | 284 | SETTINGS ~ |
275 | 285 |
|
|
0 commit comments