diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2026-04-18 04:29:55 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2026-04-18 04:29:55 -0500 |
| commit | 268cce40329eb3a91665ebe3ce65a0aa7b2c692e (patch) | |
| tree | 179f74cb920740ce03893f6d0cd51b74ad4f7800 /lua/config/autocmds.lua | |
| download | nvim-268cce40329eb3a91665ebe3ce65a0aa7b2c692e.tar.gz | |
initial
Diffstat (limited to 'lua/config/autocmds.lua')
| -rw-r--r-- | lua/config/autocmds.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/config/autocmds.lua b/lua/config/autocmds.lua new file mode 100644 index 0000000..46efe8a --- /dev/null +++ b/lua/config/autocmds.lua @@ -0,0 +1,12 @@ +-- highlight when yanking +vim.api.nvim_create_autocmd("TextYankPost", { + desc = "Highlight when yanking text", + group = vim.api.nvim_create_augroup("highlight-yank", { clear = true }), + callback = function() + vim.hl.on_yank() + end, +}) + +-- update plugins +vim.api.nvim_create_user_command("PackUpdate", function() vim.pack.update() end, {}) + |
