mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
refactor(lua): consistent use of local aliases
This commit is contained in:
committed by
Christian Clason
parent
a33284c2c0
commit
c10e36fc01
@@ -443,7 +443,7 @@ function M.signature_help(config)
|
||||
local buf, win = util.open_floating_preview(lines, 'markdown', config)
|
||||
|
||||
if hl then
|
||||
vim.api.nvim_buf_clear_namespace(buf, sig_help_ns, 0, -1)
|
||||
api.nvim_buf_clear_namespace(buf, sig_help_ns, 0, -1)
|
||||
vim.hl.range(
|
||||
buf,
|
||||
sig_help_ns,
|
||||
@@ -1072,7 +1072,7 @@ end
|
||||
--- @param opts? vim.lsp.WorkspaceDiagnosticsOpts
|
||||
--- @see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_dagnostics
|
||||
function M.workspace_diagnostics(opts)
|
||||
vim.validate('opts', opts, 'table', true)
|
||||
validate('opts', opts, 'table', true)
|
||||
|
||||
lsp.diagnostic._workspace_diagnostics(opts or {})
|
||||
end
|
||||
@@ -1435,7 +1435,7 @@ function M.selection_range(direction)
|
||||
|
||||
lsp.buf_request(
|
||||
0,
|
||||
ms.textDocument_selectionRange,
|
||||
method,
|
||||
params,
|
||||
---@param response lsp.SelectionRange[]?
|
||||
function(err, response)
|
||||
|
||||
Reference in New Issue
Block a user