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

Commit bef8858

Browse files
authored
Merge pull request #200 from mitchellwrosen/patch-1
Fix readme's example of combining two on_attach
2 parents 7ee7351 + 9aa96c6 commit bef8858

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ let g:completion_timer_cycle = 200 "default value is 80
280280

281281
```vim
282282
lua << EOF
283-
local on_attach_vim = function()
284-
require'completion'.on_attach()
285-
require'diagnostic'.on_attach()
283+
local on_attach_vim = function(client)
284+
require'completion'.on_attach(client)
285+
require'diagnostic'.on_attach(client)
286286
end
287287
require'nvim_lsp'.pyls.setup{on_attach=on_attach_vim}
288288
EOF

0 commit comments

Comments
 (0)