Minimal Neovim plugin to find and replace text in a buffer or selection using interactive input prompts.
{
"imdevan/page-replace.nvim",
opts = {},
}{
"imdevan/page-replace.nvim",
opts = {
keymaps = {
enabled = true,
},
},
}| Key | Action |
|---|---|
<leader>pr |
Find and replace text in the page or selection |
Set keymaps.enabled = false to disable and define your own mapping:
{
"imdevan/page-replace.nvim",
opts = { keymaps = { enabled = false } },
config = function(_, opts)
require("page-replace").setup(opts)
vim.keymap.set({ "n", "x" }, "<leader>pr", "<cmd>PageReplace<cr>")
end,
}| Command | Description |
|---|---|
PageReplace |
Prompt for find and replace strings to perform substitution |
Requires plenary.nvim on your runtime path (or a clone in vendor/plenary.nvim).
nvim --headless -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal_init.lua'}"
# or
just test