This commit is contained in:
Dino Danic 2025-03-23 20:52:29 +01:00
parent 2abcb39fae
commit ab6de4d9e4
6 changed files with 198 additions and 280 deletions

View file

@ -0,0 +1,14 @@
-- [[ Basic Autocommands ]]
--
-- See `:help lua-guide-autocommands`
-- Highlight when yanking (copying) text
-- Try it with `yap` in normal mode
-- See `:help vim.highlight.on_yank()`
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,
})