Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Commit

Permalink
Note about deprecating
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdevries committed Mar 25, 2020
1 parent 999f365 commit 05f55a5
Showing 1 changed file with 3 additions and 62 deletions.
65 changes: 3 additions & 62 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,67 +2,8 @@

# NOTICE

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.
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).

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.
Any neovim of 0.5 or greater, just check out `:help lsp`

Thanks

## Old info

Shim for the language server protocol developed by Microsoft. The protocol can be found here: https://github.com/Microsoft/language-server-protocol

## Configuration

First you need to install a language server. An example of installing one might be:

```shell
$ go get github.com/sourcegraph/go-langserver/langserver/cmd/langserver-go
```

A more complete set of language servers can be found here: https://github.com/Microsoft/language-server-protocol/wiki/Protocol-Implementations

You will need to put this somewhere that is sourced on startup.

```vim
let g:langserver_executables = {
\ 'go': {
\ 'name': 'sourcegraph/langserver-go',
\ 'cmd': ['langserver-go', '-trace', '-logfile', expand('~/Desktop/langserver-go.log')],
\ },
\ }
```

To start the language server, run the command:

```vim
:LSPStart
```

After starting the language server, you should be able to run commands like:

```vim
:LSPGoto
:LSPHover
```

and some more to come.

More configuration to come...

## Plans

- [x] Use vim lsp
- [x] Use sourcegraph/langserver-go to test
- [x] Functions to make messages / message dictionaries quickly in Neovim.
- [ ] Implement various actions in (similar to) this order:
- [x] Initialize
- [x] Shutdown
- [x] textDocument/didOpen
- [x] textDocument/references
- [x] Go to definition: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#goto-definition-request
- [x] Hover
- [x] Find references: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#find-references-request
- [ ] Highlights:
- [ ] Completion:
- [ ] Then deoplete source for completion
:grin:

0 comments on commit 05f55a5

Please sign in to comment.