diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2025-08-26 15:31:16 +0200 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-08-28 11:34:01 +0200 |
| commit | c10e36fc016cb265026a772571ce0a405df2ab71 (patch) | |
| tree | 2918f8f85fbd9595eb55af33033acde417d415d2 /runtime/lua/vim/hl.lua | |
| parent | a33284c2c068a9204330bc941e274b1f5bd9f5c6 (diff) | |
| download | rneovim-c10e36fc016cb265026a772571ce0a405df2ab71.tar.gz rneovim-c10e36fc016cb265026a772571ce0a405df2ab71.tar.bz2 rneovim-c10e36fc016cb265026a772571ce0a405df2ab71.zip | |
refactor(lua): consistent use of local aliases
Diffstat (limited to 'runtime/lua/vim/hl.lua')
| -rw-r--r-- | runtime/lua/vim/hl.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/hl.lua b/runtime/lua/vim/hl.lua index d486984b7c..0af2c82927 100644 --- a/runtime/lua/vim/hl.lua +++ b/runtime/lua/vim/hl.lua @@ -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, |