mirror of
https://github.com/mfussenegger/nvim-jdtls
synced 2024-09-16 14:34:13 +02:00
Readme: Add mapping example
This commit is contained in:
parent
e92e70023d
commit
438d426938
1 changed files with 8 additions and 0 deletions
|
@ -94,6 +94,14 @@ config['init_options'] = {
|
|||
```
|
||||
|
||||
|
||||
You may also want to create mappings for the code action command and to organize imports:
|
||||
|
||||
```
|
||||
nnoremap <A-CR> <Cmd>lua require'jdtls'.code_action()<CR>
|
||||
nnoremap <A-o> <Cmd>lua require'jdtls'.organize_imports()<CR>
|
||||
```
|
||||
|
||||
|
||||
[1]: https://microsoft.github.io/language-server-protocol/
|
||||
[2]: https://neovim.io/
|
||||
[3]: https://github.com/eclipse/eclipse.jdt.ls
|
||||
|
|
Loading…
Reference in a new issue