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

@@ -72,7 +72,7 @@ function M.range(bufnr, ns, higroup, start, finish, opts)
0,
}
local buf_line_count = vim.api.nvim_buf_line_count(bufnr)
local buf_line_count = api.nvim_buf_line_count(bufnr)
pos1[2] = math.min(pos1[2], buf_line_count)
pos2[2] = math.min(pos2[2], buf_line_count)
@@ -182,8 +182,8 @@ function M.on_yank(opts)
local higroup = opts.higroup or 'IncSearch'
local bufnr = vim.api.nvim_get_current_buf()
local winid = vim.api.nvim_get_current_win()
local bufnr = api.nvim_get_current_buf()
local winid = api.nvim_get_current_win()
if yank_timer and not yank_timer:is_closing() then
yank_timer:close()
@@ -191,7 +191,7 @@ function M.on_yank(opts)
yank_hl_clear()
end
vim.api.nvim__ns_set(yank_ns, { wins = { winid } })
api.nvim__ns_set(yank_ns, { wins = { winid } })
yank_timer, yank_hl_clear = M.range(bufnr, yank_ns, higroup, "'[", "']", {
regtype = event.regtype,
inclusive = true,