A Neovim plugin for copying the reference to a method that the cursor is within.
xeref_demo.mov
Note
If you would like xeref.nvim to support a language not in this list, please
open a ticket or submit a PR.
- Ruby
Using Lazy.nvim
return {
"bkiahstroud/xeref.nvim",
}xeref.nvim has no default keymaps. Its functionality is exposed via the
plugin's API or the Xeref command. Users may use either of these when defining
their own keymap, for example:
vim.keymap.set("n", "<leader>yr", function()
require("xeref").copy_method_ref()
end)
-- or
vim.keymap.set("n", "<leader>yr", "<cmd>Xeref<cr>")Portmanteau of "Xerox" and "reference".