Quickly find and replace without having to worry about %s
and escaping characters.
use("nathom/easy-replace.nvim")
Two visual mode mappings are automatically installed: <leader>r
and <leader>R
.
The first replaces the text selected with the inputted text throughout the file. The second requests
for confirmation before replacing.
You can call the replacement function with
require('easy_replace').replace_selection()
To ask for confirmation, pass true
into replace_selection
.