Skip to content

Commit

Permalink
use visual highlight for yank
Browse files Browse the repository at this point in the history
  • Loading branch information
tommsawyer committed Apr 25, 2023
1 parent 0cc8096 commit 11a92d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/nvim/lua/autocommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ local api = vim.api

local yankGrp = api.nvim_create_augroup("YankHighlight", { clear = true })
api.nvim_create_autocmd("TextYankPost", {
command = "silent! lua vim.highlight.on_yank()",
command = "silent! lua vim.highlight.on_yank({ higroup = \"Visual\" })",
group = yankGrp,
})

0 comments on commit 11a92d7

Please sign in to comment.