mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
feat(lsp): add vim.lsp.buf.format (#18193)
This commit is contained in:

committed by
GitHub

parent
eecc6535eb
commit
5b04e46d23
@@ -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)
|
||||
|
Reference in New Issue
Block a user