added the basics back in

This commit is contained in:
adollar 2025-06-25 16:56:32 +01:00
parent 8203ff7074
commit 073319c1b9
9 changed files with 236 additions and 242 deletions

13
lua/core/snippets.lua Normal file
View file

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