mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 06:27:14 +01:00
tear appart all the things
This commit is contained in:
10
lua/core/autocmd.lua
Normal file
10
lua/core/autocmd.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
-- [[ Basic Autocommands ]]
|
||||
|
||||
-- Highlight when yanking (copying) text
|
||||
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,
|
||||
})
|
||||
Reference in New Issue
Block a user