Highlight the yanked text
This commit is contained in:
parent
db3aa2fe32
commit
3382627d6f
7
nvim/plugin/autocommands.lua
Normal file
7
nvim/plugin/autocommands.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
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,
|
||||
})
|
Loading…
Reference in a new issue