diff --git a/.config/nvim/lua/plugins/yankassassin.lua b/.config/nvim/lua/plugins/yankassassin.lua new file mode 100644 index 00000000..88626ce4 --- /dev/null +++ b/.config/nvim/lua/plugins/yankassassin.lua @@ -0,0 +1,12 @@ +return { + "svban/YankAssassin.nvim", + config = function() + require("YankAssassin").setup({ + auto_normal = true, -- if true, autocmds are used. Whenever y is used in normal mode, the cursor doesn't move to start + auto_visual = true, -- if true, autocmds are used. Whenever y is used in visual mode, the cursor doesn't move to start + }) + -- Optional Mappings + vim.keymap.set({ "x", "n" }, "gy", "(YADefault)", { silent = true }) + vim.keymap.set({ "x", "n" }, "y", "(YANoMove)", { silent = true }) + end, +}