From da2086f5619120dbd835caeedff7c1b57b54a5a2 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Wed, 16 Oct 2024 21:20:51 +0800 Subject: [PATCH] Rename nvim config folder (trying kickstart.nvim) --- .config/{nvim => nvim-sheldon}/after/plugin/lsp.lua | 0 .../{nvim => nvim-sheldon}/after/plugin/treesitter.lua | 0 .config/{nvim => nvim-sheldon}/init.lua | 0 .config/{nvim => nvim-sheldon}/lua/sheldonmlee/init.lua | 0 .config/{nvim => nvim-sheldon}/lua/sheldonmlee/packer.lua | 0 .config/{nvim => nvim-sheldon}/lua/sheldonmlee/remap.lua | 0 .config/{nvim => nvim-sheldon}/lua/sheldonmlee/set.lua | 8 ++++++++ 7 files changed, 8 insertions(+) rename .config/{nvim => nvim-sheldon}/after/plugin/lsp.lua (100%) rename .config/{nvim => nvim-sheldon}/after/plugin/treesitter.lua (100%) rename .config/{nvim => nvim-sheldon}/init.lua (100%) rename .config/{nvim => nvim-sheldon}/lua/sheldonmlee/init.lua (100%) rename .config/{nvim => nvim-sheldon}/lua/sheldonmlee/packer.lua (100%) rename .config/{nvim => nvim-sheldon}/lua/sheldonmlee/remap.lua (100%) rename .config/{nvim => nvim-sheldon}/lua/sheldonmlee/set.lua (81%) diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim-sheldon/after/plugin/lsp.lua similarity index 100% rename from .config/nvim/after/plugin/lsp.lua rename to .config/nvim-sheldon/after/plugin/lsp.lua diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim-sheldon/after/plugin/treesitter.lua similarity index 100% rename from .config/nvim/after/plugin/treesitter.lua rename to .config/nvim-sheldon/after/plugin/treesitter.lua diff --git a/.config/nvim/init.lua b/.config/nvim-sheldon/init.lua similarity index 100% rename from .config/nvim/init.lua rename to .config/nvim-sheldon/init.lua diff --git a/.config/nvim/lua/sheldonmlee/init.lua b/.config/nvim-sheldon/lua/sheldonmlee/init.lua similarity index 100% rename from .config/nvim/lua/sheldonmlee/init.lua rename to .config/nvim-sheldon/lua/sheldonmlee/init.lua diff --git a/.config/nvim/lua/sheldonmlee/packer.lua b/.config/nvim-sheldon/lua/sheldonmlee/packer.lua similarity index 100% rename from .config/nvim/lua/sheldonmlee/packer.lua rename to .config/nvim-sheldon/lua/sheldonmlee/packer.lua diff --git a/.config/nvim/lua/sheldonmlee/remap.lua b/.config/nvim-sheldon/lua/sheldonmlee/remap.lua similarity index 100% rename from .config/nvim/lua/sheldonmlee/remap.lua rename to .config/nvim-sheldon/lua/sheldonmlee/remap.lua diff --git a/.config/nvim/lua/sheldonmlee/set.lua b/.config/nvim-sheldon/lua/sheldonmlee/set.lua similarity index 81% rename from .config/nvim/lua/sheldonmlee/set.lua rename to .config/nvim-sheldon/lua/sheldonmlee/set.lua index 4ed3ce2..4782e96 100644 --- a/.config/nvim/lua/sheldonmlee/set.lua +++ b/.config/nvim-sheldon/lua/sheldonmlee/set.lua @@ -37,3 +37,11 @@ vim.api.nvim_create_autocmd('BufWritePre', { command = 'silent! Neoformat', group = vim.api.nvim_create_augroup('Neoformat', {}), }) + +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, +})