better buffer shortcuts

This commit is contained in:
Daniel B Sherry 2025-05-14 09:52:13 -05:00
parent a5207c9491
commit e0e949f2e6
9 changed files with 53 additions and 15 deletions

13
lua/user/autocmds.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.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,
})