|
2 | 2 |
|
3 | 3 | # NOTICE
|
4 | 4 |
|
5 |
| -Hi everyone, Thanks for all the support this plugin has received. If you like it, consider giving feedback and/or help, patches and review to https://github.com/neovim/neovim/pull/6856 , where I'll be working on incorporating this into Neovim. |
| 5 | +This repo is now deprecated. Everything you could have wanted to do here, you can now do in neovim natively (if you download nightly at the time of writing). |
6 | 6 |
|
7 |
| -Once that is merged, I'll probably just delete everything inside the repository (you can go back in history if you'd like it :) ) and point to Neovim's documentation. |
| 7 | +Any neovim of 0.5 or greater, just check out `:help lsp` |
8 | 8 |
|
9 |
| -Thanks |
10 |
| - |
11 |
| -## Old info |
12 |
| - |
13 |
| -Shim for the language server protocol developed by Microsoft. The protocol can be found here: https://github.com/Microsoft/language-server-protocol |
14 |
| - |
15 |
| -## Configuration |
16 |
| - |
17 |
| -First you need to install a language server. An example of installing one might be: |
18 |
| - |
19 |
| -```shell |
20 |
| -$ go get github.com/sourcegraph/go-langserver/langserver/cmd/langserver-go |
21 |
| -``` |
22 |
| - |
23 |
| -A more complete set of language servers can be found here: https://github.com/Microsoft/language-server-protocol/wiki/Protocol-Implementations |
24 |
| - |
25 |
| -You will need to put this somewhere that is sourced on startup. |
26 |
| - |
27 |
| -```vim |
28 |
| -let g:langserver_executables = { |
29 |
| - \ 'go': { |
30 |
| - \ 'name': 'sourcegraph/langserver-go', |
31 |
| - \ 'cmd': ['langserver-go', '-trace', '-logfile', expand('~/Desktop/langserver-go.log')], |
32 |
| - \ }, |
33 |
| - \ } |
34 |
| -``` |
35 |
| - |
36 |
| -To start the language server, run the command: |
37 |
| - |
38 |
| -```vim |
39 |
| -:LSPStart |
40 |
| -``` |
41 |
| - |
42 |
| -After starting the language server, you should be able to run commands like: |
43 |
| - |
44 |
| -```vim |
45 |
| -:LSPGoto |
46 |
| -:LSPHover |
47 |
| -``` |
48 |
| - |
49 |
| -and some more to come. |
50 |
| - |
51 |
| -More configuration to come... |
52 |
| - |
53 |
| -## Plans |
54 |
| - |
55 |
| -- [x] Use vim lsp |
56 |
| -- [x] Use sourcegraph/langserver-go to test |
57 |
| -- [x] Functions to make messages / message dictionaries quickly in Neovim. |
58 |
| -- [ ] Implement various actions in (similar to) this order: |
59 |
| - - [x] Initialize |
60 |
| - - [x] Shutdown |
61 |
| - - [x] textDocument/didOpen |
62 |
| - - [x] textDocument/references |
63 |
| - - [x] Go to definition: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#goto-definition-request |
64 |
| - - [x] Hover |
65 |
| - - [x] Find references: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#find-references-request |
66 |
| - - [ ] Highlights: |
67 |
| - - [ ] Completion: |
68 |
| - - [ ] Then deoplete source for completion |
| 9 | +:grin: |
0 commit comments