diff options
author | Ido Ariel <idoarielevin@gmail.com> | 2021-07-17 12:15:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-17 11:15:57 +0200 |
commit | d8f5f4d09078e7d52d1abd13418133da10b2cc27 (patch) | |
tree | 99a1d44375d0e7ceac94ee8c1681dcb5654b003c /runtime/lua/vim/lsp/util.lua | |
parent | 682247b52e76180e4c49b794c6cc2548bfd32d4c (diff) | |
download | rneovim-d8f5f4d09078e7d52d1abd13418133da10b2cc27.tar.gz rneovim-d8f5f4d09078e7d52d1abd13418133da10b2cc27.tar.bz2 rneovim-d8f5f4d09078e7d52d1abd13418133da10b2cc27.zip |
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
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index f047a12dff..1ea974dffa 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -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} } |