mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 13:06:35 +05:30
add autocmd for highlighting yanked text
This commit is contained in:
@ -37,3 +37,13 @@ require("nvchad.autocmds")
|
|||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
require("mappings")
|
require("mappings")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- hightlight on yank
|
||||||
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
|
group = vim.api.nvim_create_augroup("highlight_yank", { clear = true }),
|
||||||
|
desc = "Hightlight selection on yank",
|
||||||
|
pattern = "*",
|
||||||
|
callback = function()
|
||||||
|
vim.highlight.on_yank()
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
Reference in New Issue
Block a user