nvim/lua/zynh/autos.lua

10 lines
275 B
Lua
Raw Normal View History

2023-03-10 14:58:22 +00:00
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
2023-03-19 06:49:58 +00:00
vim.g.netrw_list_hide = ".DS_Store"
2023-03-10 14:58:22 +00:00
vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
vim.highlight.on_yank()
end,
group = highlight_group,
pattern = '*',
})