doc(lsp): various small fixes (#15113)

- remove incorrect usage of docstrings
- fix make_formatting_params return type documentation to 'DocumentFormattingParams'
- make progress_handler private
- fix links
This commit is contained in:
Ido Ariel
2021-07-17 12:15:57 +03:00
committed by GitHub
parent 682247b52e
commit d8f5f4d090
3 changed files with 56 additions and 45 deletions

View File

@@ -1868,10 +1868,10 @@ function M.get_effective_tabstop(bufnr)
return (sts > 0 and sts) or (sts < 0 and bo.shiftwidth) or bo.tabstop
end
--- Creates a `FormattingOptions` object for the current buffer and cursor position.
--- Creates a `DocumentFormattingParams` object for the current buffer and cursor position.
---
--@param options Table with valid `FormattingOptions` entries
--@returns `FormattingOptions object
--@returns `DocumentFormattingParams` object
--@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_formatting
function M.make_formatting_params(options)
validate { options = {options, 't', true} }