mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 14:25:32 +00:00
refactor(types): more fixes (2)
This commit is contained in:
committed by
Lewis Russell
parent
3c572a31a3
commit
85b13751a5
@@ -248,6 +248,9 @@ function M.format(options)
|
||||
vim.notify('[LSP] Format request failed, no matching language servers.')
|
||||
end
|
||||
|
||||
--- @param client vim.lsp.Client
|
||||
--- @param params lsp.DocumentFormattingParams
|
||||
--- @return lsp.DocumentFormattingParams
|
||||
local function set_range(client, params)
|
||||
if range then
|
||||
local range_params =
|
||||
@@ -294,6 +297,9 @@ end
|
||||
--- Restrict clients used for rename to ones where client.name matches
|
||||
--- this field.
|
||||
--- @field name? string
|
||||
---
|
||||
--- (default: current buffer)
|
||||
--- @field bufnr? integer
|
||||
|
||||
--- Renames all references to the symbol under the cursor.
|
||||
---
|
||||
@@ -786,6 +792,7 @@ function M.code_action(options)
|
||||
options = options or {}
|
||||
-- Detect old API call code_action(context) which should now be
|
||||
-- code_action({ context = context} )
|
||||
--- @diagnostic disable-next-line:undefined-field
|
||||
if options.diagnostics or options.only then
|
||||
options = { options = options }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user