diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2022-09-08 11:33:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 11:33:04 +0200 |
commit | 11167ab6d569994dd0a4f58155c84b118706380c (patch) | |
tree | e0e4b1bac8ce4c454c9914c7924e71a205259500 /runtime/doc | |
parent | 8c59d7e6a719b4d8e14441e6ba9e551bd84ed3d1 (diff) | |
download | rneovim-11167ab6d569994dd0a4f58155c84b118706380c.tar.gz rneovim-11167ab6d569994dd0a4f58155c84b118706380c.tar.bz2 rneovim-11167ab6d569994dd0a4f58155c84b118706380c.zip |
feat(lsp): add range option to lsp.buf.format (#19998)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 3393a1a1fd..a3d21cc6f7 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1136,6 +1136,11 @@ format({options}) *vim.lsp.buf.format()* ID (client.id) matching this field. • name (string|nil): Restrict formatting to the client with name (client.name) matching this field. + • range (table|nil) Range to format. Table must contain + `start` and `end` keys with {row, col} tuples using (1,0) + indexing. Defaults to current selection in visual mode + Defaults to `nil` in other modes, formatting the full + buffer formatting({options}) *vim.lsp.buf.formatting()* Formats the current buffer. |