mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(ai.coding.yanky): Use default highlight group for yanked region
Set yanky.nvim's highlight groups, YankyPut and YankyYanked, to use vim.hl.on_yank()'s default highlight group for yanked region, IncSearch.
This commit is contained in:
parent
ec5981dfb1
commit
f5da2a5031
1 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,10 @@ return {
|
|||
opts = {
|
||||
highlight = { timer = 150 },
|
||||
},
|
||||
init = function(_)
|
||||
vim.api.nvim_set_hl(0, "YankyYanked", { link = "IncSearch" })
|
||||
vim.api.nvim_set_hl(0, "YankyPut", { link = "IncSearch" })
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"<leader>p",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue