return { "gbprod/substitute.nvim", dependencies = { -- { "gbprod/yanky.nvim" }, }, keys = { { "cx", "lua require('substitute').operator()", mode = "n" }, { "cx", "lua require('substitute').visual()", mode = "x" }, { "cxc", "lua require('substitute').line()", mode = "n" }, { "cX", "lua require('substitute').eol()", mode = "n" }, }, config = function() require("substitute").setup({ -- on_substitute = function(event) -- local y = require("yanky") -- return y.init_ring("p", event.register, event.count, event.vmode:match("[vV�]")) -- end, }) end, }