Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 2331d67

Browse files
authored
Merge pull request #277 from rockerBOO/patch-1
docs: Remove deprecated diagnostic-nvim
2 parents 28f5bec + cd96700 commit 2331d67

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

README.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -269,25 +269,6 @@ let g:completion_timer_cycle = 200 "default value is 80
269269
- You can have different setup for each server in completion-nvim using lua, see [wiki]
270270
(https://github.com/nvim-lua/completion-nvim/wiki/per-server-setup-by-lua) for more guide.
271271

272-
## Compatibility with diagnostic-nvim
273-
274-
- This plugin only focuses on the **completion** part of the built-in LSP. If
275-
you want similar help with diagnostics (e.g. virtual text, jump to diagnostic,
276-
open line diagnostic automatically...), take a look at [diagnostic-nvim](https://github.com/haorenW1025/diagnostic-nvim).
277-
278-
- Both diagnostic-nvim and completion-nvim require setting up via `on_attach`.
279-
To use them together, create a wrapper function like this.
280-
281-
```vim
282-
lua << EOF
283-
local on_attach_vim = function(client)
284-
require'completion'.on_attach(client)
285-
require'diagnostic'.on_attach(client)
286-
end
287-
require'nvim_lsp'.pyls.setup{on_attach=on_attach_vim}
288-
EOF
289-
```
290-
291272
## Trouble Shooting
292273

293274
- This plugin is in the early stages and might have unexpected issues.

0 commit comments

Comments
 (0)