aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2022-04-30 06:36:40 -0700
committerGitHub <noreply@github.com>2022-04-30 15:36:40 +0200
commit5b04e46d23b65413d934d812d61d8720b815eb1c (patch)
treef39fb4ef457aa7cdce509806c87972d3c47164fa /runtime/lua/vim/lsp/util.lua
parenteecc6535eb5d0a6b9465489e69cbde1cbb8276e6 (diff)
downloadrneovim-5b04e46d23b65413d934d812d61d8720b815eb1c.tar.gz
rneovim-5b04e46d23b65413d934d812d61d8720b815eb1c.tar.bz2
rneovim-5b04e46d23b65413d934d812d61d8720b815eb1c.zip
feat(lsp): add vim.lsp.buf.format (#18193)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 1f1a34b04a..77ab1d4224 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -1873,7 +1873,7 @@ end
--- Returns indentation size.
---
---@see |shiftwidth|
----@param bufnr (optional, number): Buffer handle, defaults to current
+---@param bufnr (number|nil): Buffer handle, defaults to current
---@returns (number) indentation size
function M.get_effective_tabstop(bufnr)
validate { bufnr = {bufnr, 'n', true} }
@@ -1884,7 +1884,7 @@ end
--- Creates a `DocumentFormattingParams` object for the current buffer and cursor position.
---
----@param options Table with valid `FormattingOptions` entries
+---@param options table|nil with valid `FormattingOptions` entries
---@returns `DocumentFormattingParams` object
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_formatting
function M.make_formatting_params(options)