dotfiles/nvim/plugin/autocommands.lua

8 lines
243 B
Lua
Raw Normal View History

2025-01-03 15:57:22 +00:00
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",
group = vim.api.nvim_create_augroup("kickstart-highlight-yank", { clear = true }),
callback = function()
vim.highlight.on_yank()
end,
})