Skip to content

Commit 5742a3b

Browse files
authored
♻️refactor(vim.highlight): Deprecation (#484)
* ♻️refactor(vim.highlight): Deprecation * ♻️refactor(vim.hl): More elegant solution.
1 parent ee297f2 commit 5742a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-autopairs/fastwrap.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ M.highlight_wrap = function(tbl_pos, row, col, end_col, whitespace_line)
215215
})
216216
else
217217
if config.highlight_grey then
218-
vim.highlight.range(
218+
(vim.hl or vim.highlight).range(
219219
bufnr,
220220
M.ns_fast_wrap,
221221
config.highlight_grey,

0 commit comments

Comments
 (0)