diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2024-02-26 10:45:32 -0500 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2024-02-26 10:45:32 -0500 |
| commit | 46b9705ba1b2bbf278d620f07bfce0f27f903743 (patch) | |
| tree | 80e8eab241abd86869a2a18eed02d9edac9ba662 /nvim | |
| parent | 4071939be002b015a5846517b16778aabe17f0d6 (diff) | |
| download | dots-46b9705ba1b2bbf278d620f07bfce0f27f903743.tar.gz | |
fixup: add autocommand link for help and description
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 0d19b08..fb569a4 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -184,10 +184,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() |