A plugin that integrates rg in nvim, while allowing you to extend it however you want.
This plugin doesn't bundle you into a quickfix list plugin, or a specify UI. You can design whatever you want.
Use the default keybinding as an operator (e.g. <leader>siw or vaw<leader>s and select words that you want to search with.
Once the search is completed, the opts.on_complete callback will be called. You can then decide how to present the result of quickfix list.
paq{'winston0410/rg.nvim'}use({"winston0410/rg.nvim"})Plug 'winston0410/rg.nvim'Initialize the plugin:
require("rg").setup({})This is the default configuration:
local opts = {
default_keybindings = {
enable = true,
modes = { "n", "v" },
binding = "<Leader>s",
},
on_complete = function()
api.nvim_command("cwindow")
end,
program = {
command = "rg",
args = { "--vimgrep", "--smart-case" },
},
}This plugin is inspired by the following resources:
