aboutsummaryrefslogtreecommitdiff
path: root/Common/nvim/lua/helper_functions.lua
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2024-04-11 20:47:04 +0200
committerjakob.stendahl <jakob.stendahl@infomedia.dk>2024-04-11 20:47:04 +0200
commitd7c322109e9aa051b4c094a60a44e814211a9a3e (patch)
tree8c80aadb297f2bcfc140cc403860fbc9e0f53fc5 /Common/nvim/lua/helper_functions.lua
parent1ca10664fbac7050271c99e19772e6582e2bfb93 (diff)
downloaddotfiles-d7c322109e9aa051b4c094a60a44e814211a9a3e.tar.gz
dotfiles-d7c322109e9aa051b4c094a60a44e814211a9a3e.zip
Remove cmp
Diffstat (limited to 'Common/nvim/lua/helper_functions.lua')
-rwxr-xr-xCommon/nvim/lua/helper_functions.lua11
1 files changed, 11 insertions, 0 deletions
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,
+})
+