refactor(lua): consistent use of local aliases

This commit is contained in:
Christian Clason
2025-08-26 15:31:16 +02:00
committed by Christian Clason
parent a33284c2c0
commit c10e36fc01
27 changed files with 59 additions and 59 deletions

View File

@@ -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)