Skip to content

Commit aa5e036

Browse files
committed
fix: renamed vim.highlight.on_yank to vim.hl.on_yank
nvim-lua@6ba2408
1 parent 57dca8f commit aa5e036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,12 @@ vim.keymap.set('n', '<M-k>', '<cmd>cprev<CR>', { desc = 'Go to the prev quickfix
233233

234234
-- Highlight when yanking (copying) text
235235
-- Try it with `yap` in normal mode
236-
-- See `:help vim.highlight.on_yank()`
236+
-- See `:help vim.hl.on_yank()`
237237
vim.api.nvim_create_autocmd('TextYankPost', {
238238
desc = 'Highlight when yanking (copying) text',
239239
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
240240
callback = function()
241-
vim.highlight.on_yank()
241+
vim.hl.on_yank()
242242
end,
243243
})
244244

0 commit comments

Comments
 (0)