From cd5a53e07f8afe06972bd4cb8226aebeb6cfaf68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ellison=20Lea=CC=83o?= Date: Tue, 7 Apr 2020 18:57:22 +0000 Subject: [PATCH] gopls/docs: adding nvim-lsp option in gopls README file Change-Id: Ic44210e227559c8e1cd5cf1350cde69e2817f5e3 GitHub-Last-Rev: c020218392160d03a9448eda62e098fe0c91a063 GitHub-Pull-Request: golang/tools#221 Reviewed-on: https://go-review.googlesource.com/c/tools/+/227442 Reviewed-by: Rebecca Stambler --- gopls/doc/vim.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gopls/doc/vim.md b/gopls/doc/vim.md index a19fe01be4..ac245d812f 100644 --- a/gopls/doc/vim.md +++ b/gopls/doc/vim.md @@ -100,6 +100,10 @@ autocmd BufWritePre *.go :call CocAction('runCommand', 'editor.action.organizeIm In vim classic only, use the experimental [`govim`], simply follow the [install steps][govim-install]. +## nvim-lsp + +To use the new builtin lsp client from neovim, using `nvim-lsp`, follow the install steps [neovim/nvim-lsp] and check the gopls [configuration][nvim-lsp-config]. + [vim-go]: https://github.com/fatih/vim-go [LanguageClient-neovim]: https://github.com/autozimu/LanguageClient-neovim [ale]: https://github.com/w0rp/ale @@ -110,3 +114,5 @@ In vim classic only, use the experimental [`govim`], simply follow the [install [coc.nvim]: https://github.com/neoclide/coc.nvim/ [`govim`]: https://github.com/myitcv/govim [govim-install]: https://github.com/myitcv/govim/blob/master/README.md#govim---go-development-plugin-for-vim8 +[neovim/nvim-lsp]: https://github.com/neovim/nvim-lsp#install +[nvim-lsp-config]: https://github.com/neovim/nvim-lsp#gopls