aboutsummaryrefslogtreecommitdiff
path: root/lua/keymaps.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/keymaps.lua')
-rw-r--r--lua/keymaps.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/keymaps.lua b/lua/keymaps.lua
index 56a118f..d022dd2 100644
--- a/lua/keymaps.lua
+++ b/lua/keymaps.lua
@@ -34,10 +34,14 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
+-- [[ 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()