From d7c322109e9aa051b4c094a60a44e814211a9a3e Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Thu, 11 Apr 2024 20:47:04 +0200 Subject: Remove cmp --- Common/nvim/lua/helper_functions.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Common/nvim/lua/helper_functions.lua') diff --git a/Common/nvim/lua/helper_functions.lua b/Common/nvim/lua/helper_functions.lua index 6c12495..05150c0 100755 --- a/Common/nvim/lua/helper_functions.lua +++ b/Common/nvim/lua/helper_functions.lua @@ -173,3 +173,14 @@ end vim.cmd [[ command! InvertNumberUnderCursor lua invertNumberUnderCursor() ]] + +-- helpful highlight when yanking text +-- 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, +}) + -- cgit v1.2.3