go/gopls/doc
Antoine Cotten 4ff08b4044 gopls: Improve auto-imports example for NeoVim LSP
Follow Lua Style Guide for function names.

Query the client's offset encoding, with a fallback to utf-16.

Omit handling of r.command since the source.organizeImports code action
doesn't return any.

Omit passing a value for wait_ms. It is optional and defaults to 1000
(see NeoVim help for vim.lsp.buf_request_sync).

Change-Id: I5e5eb6cee3a46fee1edc1e6d15b40ad88498a26c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/421295
Reviewed-by: Dylan Le <dungtuanle@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-08-09 15:21:58 +00:00
..
design gopls/doc: clean up and slightly reorganize documentation 2021-01-14 06:55:38 +00:00
advanced.md gopls/doc: update stale documentation on generics 2022-03-29 16:50:19 +00:00
analyzers.md go/tools: add check for time formats with 2006-02-01 2022-08-03 20:00:23 +00:00
command-line.md gopls/doc: remove bad gopls cli link 2021-10-20 20:41:51 +00:00
commands.md internal/lsp/command: replace VulncheckArgs Dir with URI 2022-08-04 18:58:55 +00:00
contributing.md gopls/doc: add instructions for the new "kokoro rerun" feature 2021-09-20 19:55:18 +00:00
daemon.md gopls/doc: clarify how to set remote.listen.timeout 2021-03-08 14:22:49 +00:00
emacs.md Update emacs.md - add .dir-locals.el example 2021-03-19 04:40:15 +00:00
features.md gopls: change the default value for templateExtensions to be empty 2022-01-13 20:56:24 +00:00
generate.go internal/lsp: add settings for inlay hints and enable 2022-06-22 17:08:41 +00:00
generate_test.go gopls/doc: use improved code generator for API doc 2021-12-16 11:15:33 +00:00
inlayHints.md internal/lsp: update inlay hints documentation to include go snippets 2022-07-26 18:27:49 +00:00
semantictokens.md internal/lsp: produce "method" in place of "member" as per the spec 2021-09-13 21:01:54 +00:00
settings.md internal/lsp/mod/code_lens: add "run govulncheck" codelens 2022-08-04 20:03:56 +00:00
subl.md gopls/doc: how to request a particular gopls w/ sublime text 2022-02-04 21:02:33 +00:00
troubleshooting.md gopls: merge README and user.md 2021-01-21 18:28:06 +00:00
vim.md gopls: Improve auto-imports example for NeoVim LSP 2022-08-09 15:21:58 +00:00
workspace.md gopls/doc: address additional comments on workspace.md 2022-03-02 17:29:27 +00:00