Skip to content

Commit

Permalink
♻️refactor(vim.highlight): Deprecation (#484)
Browse files Browse the repository at this point in the history
* ♻️refactor(vim.highlight): Deprecation

* ♻️refactor(vim.hl): More elegant solution.
  • Loading branch information
Zeioth authored Nov 17, 2024
1 parent ee297f2 commit 5742a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-autopairs/fastwrap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ M.highlight_wrap = function(tbl_pos, row, col, end_col, whitespace_line)
})
else
if config.highlight_grey then
vim.highlight.range(
(vim.hl or vim.highlight).range(
bufnr,
M.ns_fast_wrap,
config.highlight_grey,
Expand Down

0 comments on commit 5742a3b

Please sign in to comment.