mirror of
https://github.com/mfussenegger/nvim-jdtls
synced 2024-09-16 14:34:13 +02:00
Fix markdownlint warnings
This commit is contained in:
parent
a9f4ad6691
commit
3a489be735
3 changed files with 7 additions and 12 deletions
1
.github/workflows/linter.yml
vendored
1
.github/workflows/linter.yml
vendored
|
@ -19,4 +19,5 @@ jobs:
|
||||||
uses: github/super-linter/slim@v4
|
uses: github/super-linter/slim@v4
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
LINTER_RULES_PATH: /
|
||||||
VALIDATE_JSCPD: false
|
VALIDATE_JSCPD: false
|
||||||
|
|
3
.markdownlint.yaml
Normal file
3
.markdownlint.yaml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
MD013: false
|
||||||
|
MD051: false
|
15
README.md
15
README.md
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
Extensions for the built-in [Language Server Protocol][1] support in [Neovim][2] (>= 0.6.0) for [eclipse.jdt.ls][3].
|
Extensions for the built-in [Language Server Protocol][1] support in [Neovim][2] (>= 0.6.0) for [eclipse.jdt.ls][3].
|
||||||
|
|
||||||
|
|
||||||
## Audience
|
## Audience
|
||||||
|
|
||||||
This project follows the [KISS principle][kiss] and targets users with some
|
This project follows the [KISS principle][kiss] and targets users with some
|
||||||
|
@ -34,14 +33,12 @@ alternative:
|
||||||
- [x] Move package, instance method, static method or type
|
- [x] Move package, instance method, static method or type
|
||||||
- [x] `javap` command to show bytecode of current file
|
- [x] `javap` command to show bytecode of current file
|
||||||
- [x] `jol` command to show memory usage of current file (`jol_path` must be set)
|
- [x] `jol` command to show memory usage of current file (`jol_path` must be set)
|
||||||
- [x] `jshell` command to open up jshell with classpath from project set
|
- [x] `jshell` command to open up `jshell` with `classpath` from project set
|
||||||
- [x] Debugger support via [nvim-dap][5]
|
- [x] Debugger support via [nvim-dap][5]
|
||||||
|
|
||||||
|
|
||||||
Take a look at [a demo](https://github.com/mfussenegger/nvim-jdtls/issues/3) to
|
Take a look at [a demo](https://github.com/mfussenegger/nvim-jdtls/issues/3) to
|
||||||
see some of the functionality in action.
|
see some of the functionality in action.
|
||||||
|
|
||||||
|
|
||||||
## Plugin Installation
|
## Plugin Installation
|
||||||
|
|
||||||
- Requires Neovim (>= 0.6.0)
|
- Requires Neovim (>= 0.6.0)
|
||||||
|
@ -56,7 +53,7 @@ Install [eclipse.jdt.ls][3] by following their [Installation instructions](https
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
To configure `nvim-jdtls`, add the following in `ftplugin/java.lua` within the
|
To configure `nvim-jdtls`, add the following in `ftplugin/java.lua` within the
|
||||||
neovim configuration base directory (e.g. `~/.config/nvim/ftplugin/java.lua`,
|
Neovim configuration base directory (e.g. `~/.config/nvim/ftplugin/java.lua`,
|
||||||
see `:help base-directory`).
|
see `:help base-directory`).
|
||||||
|
|
||||||
Watch out for the 💀, it indicates that you must adjust something.
|
Watch out for the 💀, it indicates that you must adjust something.
|
||||||
|
@ -172,10 +169,9 @@ local config = {
|
||||||
`...` is not valid Lua in this context. It is meant as placeholder for the
|
`...` is not valid Lua in this context. It is meant as placeholder for the
|
||||||
other options from the [Configuration](#configuration) section above.)
|
other options from the [Configuration](#configuration) section above.)
|
||||||
|
|
||||||
|
|
||||||
### nvim-lspconfig and nvim-jdtls differences
|
### nvim-lspconfig and nvim-jdtls differences
|
||||||
|
|
||||||
Both nvim-lspconfig and nvim-jdtls use the client built into neovim:
|
Both [nvim-lspconfig][9] and nvim-jdtls use the client built into neovim:
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
┌────────────┐ ┌────────────────┐
|
┌────────────┐ ┌────────────────┐
|
||||||
|
@ -210,13 +206,11 @@ handling.
|
||||||
You **must not** use both at the same time for java. You'd end up with two
|
You **must not** use both at the same time for java. You'd end up with two
|
||||||
clients and two language server instances.
|
clients and two language server instances.
|
||||||
|
|
||||||
|
|
||||||
### UI picker customization
|
### UI picker customization
|
||||||
|
|
||||||
**Tip**: You can get a better UI for code-actions and other functions by
|
**Tip**: You can get a better UI for code-actions and other functions by
|
||||||
overriding the `jdtls.ui` picker. See [UI Extensions][10].
|
overriding the `jdtls.ui` picker. See [UI Extensions][10].
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
`nvim-jdtls` extends the capabilities of the built-in LSP support in
|
`nvim-jdtls` extends the capabilities of the built-in LSP support in
|
||||||
|
@ -501,12 +495,9 @@ priority.
|
||||||
[5]: https://github.com/mfussenegger/nvim-dap
|
[5]: https://github.com/mfussenegger/nvim-dap
|
||||||
[6]: https://github.com/microsoft/java-debug
|
[6]: https://github.com/microsoft/java-debug
|
||||||
[7]: https://github.com/microsoft/vscode-java-test
|
[7]: https://github.com/microsoft/vscode-java-test
|
||||||
[8]: https://github.com/eclipse/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line
|
|
||||||
[9]: https://github.com/neovim/nvim-lspconfig
|
[9]: https://github.com/neovim/nvim-lspconfig
|
||||||
[10]: https://github.com/mfussenegger/nvim-jdtls/wiki/UI-Extensions
|
[10]: https://github.com/mfussenegger/nvim-jdtls/wiki/UI-Extensions
|
||||||
[11]: https://github.com/mfussenegger/nvim-jdtls/wiki/Sample-Configurations
|
[11]: https://github.com/mfussenegger/nvim-jdtls/wiki/Sample-Configurations
|
||||||
[12]: https://download.eclipse.org/jdtls/milestones/
|
|
||||||
[13]: https://download.eclipse.org/jdtls/snapshots/?d
|
|
||||||
[14]: https://github.com/junegunn/vim-plug
|
[14]: https://github.com/junegunn/vim-plug
|
||||||
[15]: https://github.com/wbthomason/packer.nvim
|
[15]: https://github.com/wbthomason/packer.nvim
|
||||||
[kiss]: https://en.wikipedia.org/wiki/KISS_principle
|
[kiss]: https://en.wikipedia.org/wiki/KISS_principle
|
||||||
|
|
Loading…
Reference in a new issue