mirror of
https://github.com/josean-dev/dev-environment-files.git
synced 2025-01-09 09:41:19 +01:00
17 lines
570 B
Lua
17 lines
570 B
Lua
return {
|
|
"gbprod/substitute.nvim",
|
|
event = { "BufReadPre", "BufNewFile" },
|
|
config = function()
|
|
local substitute = require("substitute")
|
|
|
|
substitute.setup()
|
|
|
|
-- set keymaps
|
|
local keymap = vim.keymap -- for conciseness
|
|
|
|
keymap.set("n", "s", substitute.operator, { desc = "Substitute with motion" })
|
|
keymap.set("n", "ss", substitute.line, { desc = "Substitute line" })
|
|
keymap.set("n", "S", substitute.eol, { desc = "Substitute to end of line" })
|
|
keymap.set("x", "s", substitute.visual, { desc = "Substitute in visual mode" })
|
|
end,
|
|
}
|