Skip to content

Commit 14718cc

Browse files
restrayTimothée Belhomme
authored and
Timothée Belhomme
committed
fixup: add autocommand link for help and description
1 parent 9b97ab7 commit 14718cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,14 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
184184
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
185185
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
186186

187+
-- [[ Basic Autocommands ]]
188+
-- See :help lua-guide-autocommands
189+
187190
-- Highlight when yanking (copying) text
188191
-- Try it with `yap` in normal mode
189192
-- See `:help vim.highlight.on_yank()`
190193
vim.api.nvim_create_autocmd('TextYankPost', {
194+
desc = 'Highlight when yanking (copying) text',
191195
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
192196
callback = function()
193197
vim.highlight.on_yank()

0 commit comments

Comments
 (0)